Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Webhook ¶
type Webhook struct {
mixin.Model[Webhook]
// Name
Name string `json:"name"`
// Endpoint webhook should deliver events to.
Url string `json:"url"`
// Whether to use Live or Test data.
Live bool `json:"live"`
// Whether to send all events or selectively using Events.
All bool `json:"all"`
// Random token to check against
AccessToken string `json:"accessToken"`
// Events to selectively send.
Events Events `json:"events" datastore:"-" orm:"default:{}"`
Events_ string `json:"-" datastore:",noindex"`
// Whether this webhook is enabled or not.
Enabled bool `json:"enabled"`
}
Click to show internal directories.
Click to hide internal directories.