Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
URL string
Secret string
Bus *events.Bus
Log *slog.Logger
Client *http.Client
}
Config configures the webhook dispatcher.
type Payload ¶
type Payload struct {
Event string `json:"event"`
Timestamp time.Time `json:"timestamp"`
Data any `json:"data"`
}
Payload is the JSON structure sent to the webhook endpoint.
Click to show internal directories.
Click to hide internal directories.