Documentation
¶
Overview ¶
Package idempotencywebhook provides provider-delivery deduplication for webhook messages with bounded payload fingerprints and durable ownership.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInProgress reports another active delivery owner. ErrInProgress = idempotencyqueue.ErrInProgress // ErrConflict reports reuse of a provider delivery ID for another payload. ErrConflict = idempotencyqueue.ErrConflict // ErrTerminalFailure reports a deliberately persisted permanent failure. ErrTerminalFailure = idempotencyqueue.ErrTerminalFailure )
Functions ¶
Types ¶
type Delivery ¶
type Delivery interface {
Payload() []byte
}
Delivery is the structural payload contract expected from webhook messages.
type FingerprintFunc ¶
type FingerprintFunc func(Delivery) (idempotency.Fingerprint, error)
FingerprintFunc computes canonical event identity.
type Options ¶
type Options struct {
Service *idempotency.Service
Lease time.Duration
TransitionTimeout time.Duration
Key KeyFunc
Fingerprint FingerprintFunc
}
Options configures durable webhook delivery ownership.
Click to show internal directories.
Click to hide internal directories.