Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidEventType ¶ added in v1.0.4
IsValid checks if the given event type is valid.
e is the event type to be checked. Returns true if the event type is valid, false otherwise.
Types ¶
type Webhook ¶
type Webhook struct { // The unique identifier of the webhook. ID string `json:"id" validate:"max=36" example:"123e4567-e89b-12d3-a456-426614174000"` // The URL the webhook will be sent to. URL string `json:"url" validate:"required,http_url" example:"https://example.com/webhook"` // The type of event the webhook is triggered for. Event EventType `json:"event" validate:"required" example:"sms:received"` }
A webhook configuration.
Click to show internal directories.
Click to hide internal directories.