webhook

package
v0.0.0-...-2e419a0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdvertiserChosenEvent   WebhookEventType = "advertiserChosen"
	AdvertiserChosenEventV2                  = "advertiserChosenV2"
	AdvertiserChosenEventV3                  = "advertiserChosenV3"
	SignupsCollectedEventV3                  = "signupsCollectedV3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookEvent

type WebhookEvent struct {
	Event   WebhookEventType `json:"event"`
	Payload interface{}      `json:"payload"`
}

type WebhookEventType

type WebhookEventType string

type WebhookManager

type WebhookManager struct {
	// contains filtered or unexported fields
}

func NewWebhookManager

func NewWebhookManager(repo repository.Repository) *WebhookManager

func (*WebhookManager) Destroy

func (wm *WebhookManager) Destroy()

func (*WebhookManager) QueueToSend

func (wm *WebhookManager) QueueToSend(guildID string, event *WebhookEvent) error

Jump to

Keyboard shortcuts

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