Documentation
¶
Index ¶
- func DeliverLegacyListEvent(ctx context.Context, list *model.MailingList, event string)
- func DeliverLegacyUserListEvent(ctx context.Context, list *model.MailingList, event string)
- func DeliverListEmailEvent(ctx context.Context, listID int, event model.WebhookEvent, email *model.Email)
- func DeliverListPatchsetEvent(ctx context.Context, listID int, event model.WebhookEvent, ...)
- func DeliverMailingListEvent(ctx context.Context, event model.WebhookEvent, list *model.MailingList)
- func DeliverUserEmailEvent(ctx context.Context, event model.WebhookEvent, email *model.Email)
- func DeliverUserMailingListEvent(ctx context.Context, event model.WebhookEvent, list *model.MailingList)
- type ListWebhookPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeliverLegacyListEvent ¶
func DeliverLegacyListEvent( ctx context.Context, list *model.MailingList, event string, )
func DeliverLegacyUserListEvent ¶
func DeliverLegacyUserListEvent( ctx context.Context, list *model.MailingList, event string, )
func DeliverListEmailEvent ¶
func DeliverMailingListEvent ¶
func DeliverMailingListEvent(ctx context.Context, event model.WebhookEvent, list *model.MailingList)
func DeliverUserEmailEvent ¶
func DeliverUserMailingListEvent ¶
func DeliverUserMailingListEvent(ctx context.Context, event model.WebhookEvent, list *model.MailingList)
Types ¶
type ListWebhookPayload ¶
type ListWebhookPayload struct {
ID int `json:"id"`
Name string `json:"name"`
Created time.Time `json:"created"`
Updated time.Time `json:"created"`
Description *string `json:"description"`
Permissions struct {
Nonsubscriber []string `json:"nonsubscriber"`
Subscriber []string `json:"subscriber"`
Account []string `json:"account"`
} `json:"permissions"`
Owner struct {
CanonicalName string `json:"canonical_name"`
Name string `json:"name"`
} `json:"owner"`
}
Click to show internal directories.
Click to hide internal directories.