Documentation
¶
Overview ¶
Package backoff provides backoff calculation functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExponentialBackoffConfig ¶
ExponentialBackoffConfig is the configuration for exponential backoff.
type Func ¶
Func generates backoff delays.
func ExponentialBackoff ¶
func ExponentialBackoff(cfg ExponentialBackoffConfig) Func
ExponentialBackoff returns an exponential backoff with partial jitter.
func RateLimitedExponentialBackoff ¶
func RateLimitedExponentialBackoff(cfg ExponentialBackoffConfig) Func
RateLimitedExponentialBackoff returns an backoff function that prioritizes `Retry-After` headers, defaulting to exponential backoff if they're not found. Adds partial jitter.
Click to show internal directories.
Click to hide internal directories.