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
Click to show internal directories.
Click to hide internal directories.