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

Method Post

backend/plugin/webhook/dingtalk/dingtalk.go:72–79  ·  view source on GitHub ↗
(context webhook.Context)

Source from the content-addressed store, hash-verified

70}
71
72func (*Receiver) Post(context webhook.Context) error {
73 if context.DirectMessage && len(context.MentionEndUsers) > 0 {
74 if sendDirectMessage(context) {
75 return nil
76 }
77 }
78 return sendMessage(context)
79}
80
81// returns true if the message is sent successfully.
82func sendDirectMessage(webhookCtx webhook.Context) bool {

Callers

nothing calls this directly

Implementers 8

Receiverbackend/plugin/webhook/discord/discord
feishuReceiverbackend/plugin/webhook/feishu/feishu.g
Receiverbackend/plugin/webhook/dingtalk/dingta
Receiverbackend/plugin/webhook/wecom/wecom.go
Receiverbackend/plugin/webhook/slack/slack.go
Receiverbackend/plugin/webhook/teams/teams.go
Receiverbackend/plugin/webhook/googlechat/goog
larkReceiverbackend/plugin/webhook/lark/lark.go

Calls 2

sendDirectMessageFunction · 0.85
sendMessageFunction · 0.85

Tested by

no test coverage detected