Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*strategy)
func WithBaseDelay ¶
WithBaseDelay is the amount of time to wait before retrying after the first failure. Default is 1 second.
func WithFactor ¶
WithFactor is applied to the backoff after each retry. Default value is 1.6
func WithJitter ¶
WithJitter provides a range to randomize backoff delays. Default value is 0.2
func WithMaxDelay ¶
WithMaxDelay is the upper bound of backoff delay. Default is 180 seconds.
Click to show internal directories.
Click to hide internal directories.