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

Function getDingTalkConfig

backend/plugin/webhook/dingtalk/dingtalk.go:27–37  ·  view source on GitHub ↗

getDingTalkConfig extracts the DingTalk configuration from the AppIMSetting.

(setting *storepb.AppIMSetting)

Source from the content-addressed store, hash-verified

25
26// getDingTalkConfig extracts the DingTalk configuration from the AppIMSetting.
27func getDingTalkConfig(setting *storepb.AppIMSetting) *storepb.AppIMSetting_DingTalk {
28 if setting == nil {
29 return nil
30 }
31 for _, s := range setting.Settings {
32 if s.Type == storepb.WebhookType_DINGTALK {
33 return s.GetDingtalk()
34 }
35 }
36 return nil
37}
38
39// Response is the API message for DingTalk webhook response.
40type Response struct {

Callers 1

sendDirectMessageFunction · 0.85

Calls 1

GetDingtalkMethod · 0.45

Tested by

no test coverage detected