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 Initial. After every call to Duration() it is doubled. It is capped at Max. It returns to Initial on every call to Reset(). Used in conjunction with the time package.
Click to show internal directories.
Click to hide internal directories.