Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // MaxDelay is the upper bound of backoff delay. MaxDelay time.Duration // baseDelay is the amount of time to wait before retrying after the first // failure. BaseDelay time.Duration // factor is applied to the backoff after each retry. Factor float64 // jitter provides a range to randomize backoff delays. Jitter float64 }
Config defines the parameters for the default backoff strategy.
Click to show internal directories.
Click to hide internal directories.