Documentation
¶
Overview ¶
Package webhook implements pg-outbox delivery: signed HTTP POSTs with Keygen's outcome classification, URL checks and auto-disable rules.
Index ¶
Constants ¶
View Source
const MaxAttempts = 16
MaxAttempts is the reference's retry budget: the first delivery plus 15 sidekiq retries.
Variables ¶
This section is empty.
Functions ¶
func Backoff ¶
Backoff is the reference's sidekiq retry curve: count**4 seconds plus a jitter of 10 minutes times a uniform 1..10.
func RetryBackoff ¶
RetryBackoff is the Keygen curve used by the relay after a failed attempt.
Types ¶
type Store ¶
type Store = port.WebhookDeliveryStore
Store is the worker's storage port (satisfied by *postgres.Store).
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker is the pg-outbox Publisher. Construction starts no background work.
Click to show internal directories.
Click to hide internal directories.