MCPcopy Create free account
hub / github.com/go-playground/webhooks / Secret

Method Secret

github/github.go:102–107  ·  view source on GitHub ↗

Secret registers the GitHub secret

(secret string)

Source from the content-addressed store, hash-verified

100
101// Secret registers the GitHub secret
102func (WebhookOptions) Secret(secret string) Option {
103 return func(hook *Webhook) error {
104 hook.secret = secret
105 return nil
106 }
107}
108
109// Webhook instance contains all methods needed to process events
110type Webhook struct {

Callers 1

TestMainFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestMainFunction · 0.36