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

Function Post

backend/plugin/webhook/webhook.go:217–225  ·  view source on GitHub ↗

Post posts the message to webhook.

(webhookType storepb.WebhookType, context Context)

Source from the content-addressed store, hash-verified

215
216// Post posts the message to webhook.
217func Post(webhookType storepb.WebhookType, context Context) error {
218 receiverMu.RLock()
219 r, ok := receivers[webhookType]
220 receiverMu.RUnlock()
221 if !ok {
222 return errors.Errorf("webhook: no applicable receiver for webhook type: %v", webhookType)
223 }
224 return r.Post(context)
225}

Callers 1

postWebhookListMethod · 0.92

Calls 2

ErrorfMethod · 0.80
PostMethod · 0.65

Tested by

no test coverage detected