Documentation ¶
Overview ¶
Package webhook implements webhook API endpoints.
Note docs say "Mailgun imposes a rate limit for the Webhook API endpoint. Users may issue no more than 300 requests per minute, per account."
Callers with grave concerns about this should see bugs section.
Index ¶
Constants ¶
View Source
const ( Bounce = hook(`bounce`) Deliver = hook(`deliver`) Drop = hook(`drop`) Spam = hook(`spam`) Unsubscribe = hook(`unsubscribe`) Click = hook(`click`) Open = hook(`open`) )
Webhook names.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hook ¶
type Hook interface {
// contains filtered or unexported methods
}
Hook is an interface for webhook names.
type Webhooks ¶
type Webhooks struct { Bounce Webhook `json:"bounce"` Deliver Webhook `json:"deliver"` Drop Webhook `json:"drop"` Spam Webhook `json:"spam"` Unsubscribe Webhook `json:"unsubscribe"` Click Webhook `json:"click"` Open Webhook `json:"open"` }
Webhooks are the set of webhooks supported by a domain.
Notes ¶
Bugs ¶
https://documentation.mailgun.com/en/latest/api-webhooks.html#webhooks is painfully incorrect.
Callers should feel free to inspect retry-seconds themselves.
Click to show internal directories.
Click to hide internal directories.