MCPcopy Create free account
hub / github.com/gogs/gogs / SlackMeta

Method SlackMeta

internal/database/webhook.go:140–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138}
139
140func (w *Webhook) SlackMeta() *SlackMeta {
141 s := &SlackMeta{}
142 if err := jsoniter.Unmarshal([]byte(w.Meta), s); err != nil {
143 log.Error("Failed to get Slack meta [webhook_id: %d]: %v", w.ID, err)
144 }
145 return s
146}
147
148// History returns history of webhook by given conditions.
149func (w *Webhook) History(page int) ([]*HookTask, error) {

Callers 2

loadWebhookFunction · 0.95
ToHookFunction · 0.80

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected