Documentation
¶
Overview ¶
Package retry computes the deterministic backoff schedule for redeliveries and decides when a delivery has exhausted its budget. It is pure logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultBackoff = core.BackoffConfig{ BaseDelay: 2 * time.Second, Multiplier: 3, MaxDelay: time.Hour, MaxAttempts: 8, }
DefaultBackoff is used when a destination sets no override.
Functions ¶
This section is empty.
Types ¶
type Plan ¶
type Plan struct {
// DeadLetter is true when the retry budget is exhausted; Delay is then
// meaningless.
DeadLetter bool
// Delay is how long to wait before the next attempt.
Delay time.Duration
}
Plan is the scheduler's decision after an attempt completes.
Click to show internal directories.
Click to hide internal directories.