Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backoff ¶
type Backoff struct { // Initial value to scale out Initial time.Duration // Jitter value randomizes an additional delay between 0 and Jitter Jitter time.Duration // Max maximum values of the backoff Max time.Duration // contains filtered or unexported fields }
Backoff is a time.Duration counter. It starts at Min. After every call to Duration() it is multiplied by Factor. It is capped at Max. It returns to Min on every call to Reset(). Used in conjunction with the time package.
Click to show internal directories.
Click to hide internal directories.