Versions in this module Expand all Collapse all v1 v1.0.0 Jun 13, 2022 Changes in this version + var ErrEventNotFound = errors.New("event not defined to be parsed") + var ErrEventNotSpecifiedToParse = errors.New("no Event specified to parse") + var ErrHMACVerificationFailed = errors.New("HMAC verification failed") + var ErrInvalidHTTPMethod = errors.New("invalid HTTP Method") + var ErrMissingGogsEventHeader = errors.New("missing X-Gogs-Event Header") + var ErrMissingGogsSignatureHeader = errors.New("missing X-Gogs-Signature Header") + var ErrParsingPayload = errors.New("error parsing payload") + var Options = WebhookOptions + type Event string + const CreateEvent + const DeleteEvent + const ForkEvent + const IssueCommentEvent + const IssuesEvent + const PullRequestEvent + const PushEvent + const ReleaseEvent + type Option func(*Webhook) error + type Webhook struct + func New(options ...Option) (*Webhook, error) + func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error) + type WebhookOptions struct + func (WebhookOptions) Secret(secret string) Option Other modules containing this package github.com/bruno5200/webhooks/v2