Documentation ¶
Overview ¶
Package backoff provides an exponential-backoff implementation partially taken from jpillora/backoff.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backoff ¶
type Backoff struct {
// contains filtered or unexported fields
}
Backoff is a time.Duration counter, starting at Min. After every call to the Duration method the current timing is multiplied by Factor, but it never exceeds Max.
func NewBackoff ¶
NewBackoff creates a new backoff time.Duration counter.
Click to show internal directories.
Click to hide internal directories.