Documentation
¶
Overview ¶
Package webhook posts an arbitrary JSON envelope to a configured URL. Used when the consumer side is another HTTP service (an internal scoreboard, a downstream worker) rather than a person.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recipient ¶
type Recipient struct {
URL string
}
Recipient lets the caller override the URL per-call. URL == "" means "use the config URL".
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink posts to a webhook endpoint.
func (*Sink) DecodeRecipient ¶
DecodeRecipient round-trips a persisted DLQ recipient back into the typed Recipient. Used by RedisDLQ.Replay.
Click to show internal directories.
Click to hide internal directories.