MCPcopy Create free account
hub / github.com/bytebase/bytebase / getFeishuConfig

Function getFeishuConfig

backend/plugin/webhook/feishu/feishu.go:23–33  ·  view source on GitHub ↗

getFeishuConfig extracts the Feishu configuration from the AppIMSetting.

(setting *storepb.AppIMSetting)

Source from the content-addressed store, hash-verified

21
22// getFeishuConfig extracts the Feishu configuration from the AppIMSetting.
23func getFeishuConfig(setting *storepb.AppIMSetting) *storepb.AppIMSetting_Feishu {
24 if setting == nil {
25 return nil
26 }
27 for _, s := range setting.Settings {
28 if s.Type == storepb.WebhookType_FEISHU {
29 return s.GetFeishu()
30 }
31 }
32 return nil
33}
34
35// WebhookResponse is the API message for Feishu webhook response.
36type WebhookResponse struct {

Callers 1

postDirectMessageFunction · 0.85

Calls 1

GetFeishuMethod · 0.45

Tested by

no test coverage detected