Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Events = []Event{
{"reception", "message.reception"},
{"delivered", "message.delivered"},
{"transient_error", "message.transient_error"},
{"failed", "message.failed"},
{"bounced", "message.bounced"},
{"suppressed", "message.suppressed"},
{"opened", "message.opened"},
{"clicked", "message.clicked"},
{"suppression_created", "suppression.created"},
{"dns_error", "domain.dns_error"},
}
Events lists every webhook event type.
Functions ¶
func EventNames ¶ added in v0.3.0
func EventNames() []string
EventNames returns the Name of every event.
func EventTypes ¶ added in v0.3.0
EventTypes returns the Type of each event.
func EventValues ¶ added in v0.3.0
func EventValues() []string
EventValues returns the values --events takes: the Name of each event, then its Type.
func GenerateMsgID ¶
func GenerateMsgID() string
func GenerateWebhookSecret ¶
GenerateWebhookSecret returns a new secret for signing webhooks: "aha-whsec-" and 64 random letters and digits.
Types ¶
type Event ¶ added in v0.3.0
Event is a webhook event type. A webhook's settings name it by Name, as the API's on_<name> fields do; event payloads, the trigger endpoint and the listen filter name it by Type.
func FindEvent ¶ added in v0.3.0
FindEvent returns the event value names by its Name or its Type, in any case.
func ParseEvents ¶ added in v0.3.0
ParseEvents returns the event each value names, by its Name or its Type in any case, in the order given. Values that name no event, which the error names before it lists the events, and a value that names an event an earlier value named, are validation errors of the --events flag.