Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher interface {
Dispatch(event Event)
}
Dispatcher delivers webhook events to configured URLs. Dispatch is fire-and-forget: implementations handle queuing, delivery, and retries.
type DispatcherConfig ¶
type DispatcherConfig struct {
Type string `json:"type,omitempty"`
Endpoints []Endpoint `json:"endpoints,omitempty"`
}
DispatcherConfig holds the configuration for the webhook dispatcher.
type NoopDispatcher ¶
type NoopDispatcher struct{}
NoopDispatcher silently discards all events. Used when no webhook_dispatcher is configured.
func (NoopDispatcher) Dispatch ¶
func (NoopDispatcher) Dispatch(Event)
Click to show internal directories.
Click to hide internal directories.