webhooks

package
v0.0.0-...-e9b2e8b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 DeliverListEmailEvent(ctx context.Context, listID int,
	event model.WebhookEvent, email *model.Email)

func DeliverListPatchsetEvent

func DeliverListPatchsetEvent(ctx context.Context, listID int,
	event model.WebhookEvent, patchset *model.Patchset)

func DeliverMailingListEvent

func DeliverMailingListEvent(ctx context.Context,
	event model.WebhookEvent, list *model.MailingList)

func DeliverUserEmailEvent

func DeliverUserEmailEvent(ctx context.Context,
	event model.WebhookEvent, email *model.Email)

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL