Documentation ¶
Index ¶
- Variables
- func Delay(t Type, i int, opts ...delayOption) time.Duration
- func New(opts ...option) logBackoff
- func WithCeiling(ceiling uint) option
- func WithFastBackoff(fast Backoff) delayOption
- func WithJitterLimit(jitterLimit float64) option
- func WithSeed(seed int64) option
- func WithSlotDuration(slotDuration time.Duration) option
- func WithSlowBackoff(slow Backoff) delayOption
- type Backoff
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Fast = New( WithSlotDuration(fastSlot), WithCeiling(6), ) Slow = New( WithSlotDuration(slowSlot), WithCeiling(6), ) )
Functions ¶
func WithCeiling ¶
func WithCeiling(ceiling uint) option
func WithFastBackoff ¶ added in v3.66.0
func WithFastBackoff(fast Backoff) delayOption
func WithJitterLimit ¶
func WithJitterLimit(jitterLimit float64) option
func WithSlotDuration ¶
func WithSlowBackoff ¶ added in v3.66.0
func WithSlowBackoff(slow Backoff) delayOption
Types ¶
Click to show internal directories.
Click to hide internal directories.