Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backoff ¶
Backoff defines a function that control the back-off duration between call retries.
func Exponential ¶
Exponential creates a Backoff that multiplies the interval by an exponentially increasing factor for each attempt.
func Linear ¶
Linear creates a Backoff that linearly multiplies the interval by the attempt number for each attempt.
func (Backoff) WithJitter ¶
WithJitter creates a new Backoff with Jitter attached.
Click to show internal directories.
Click to hide internal directories.