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 ErrMissingEventKeyHeader = errors.New("missing X-Event-Key Header") + var ErrMissingMatiSignatureHeader = errors.New("missing X-Mati-Signature Header") + var ErrParsingPayload = errors.New("error parsing payload") + var Options = WebhookOptions + type Event string + const StepCompletedEvent + const VerificationCompletedEvent + const VerificationInputsCompletedEvent + const VerificationStartedEvent + const VerificationUpdatedEvent + type Option func(*Webhook) error + type StepCompletedPayload struct + EventName string + FlowID string + Resource string + Step struct{ ... } + Timestamp time.Time + type VerificationCompletedPayload struct + Details struct{ ... } + DeviceFingerprint struct{ ... } + EventName string + FlowID string + IdentityStatus string + MatiDashboardURL string + Resource string + Status string + Timestamp time.Time + type VerificationInputsCompletedPayload struct + EventName string + FlowID string + Resource string + Timestamp time.Time + type VerificationStartedPayload struct + EventName string + FlowID string + Resource string + Timestamp time.Time + type VerificationUpdatedPayload struct + DeviceFingerprint struct{ ... } + EventName string + FlowID string + IdentityStatus string + MatiDashboardURL string + Resource string + Status string + Timestamp time.Time + 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