Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DispatchEvent ¶
func DispatchEvent(event string, data interface{})
DispatchEvent asynchronously broadcasts an event to matching, enabled webhooks.
Types ¶
type EventPayload ¶
type EventPayload struct {
Event string `json:"event"`
Timestamp string `json:"timestamp"`
Data interface{} `json:"data"`
}
EventPayload represents the standard webhook body delivered to subscribers.
Click to show internal directories.
Click to hide internal directories.