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

Function getLarkConfig

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

getLarkConfig extracts the Lark configuration from the AppIMSetting.

(setting *storepb.AppIMSetting)

Source from the content-addressed store, hash-verified

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

Callers 1

postDirectMessageFunction · 0.85

Calls 1

GetLarkMethod · 0.45

Tested by

no test coverage detected