Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExponentialBackoff ¶
type ExponentialBackoff struct { Delay time.Duration `help:"The active time between retries, typically not set" default:"0ms"` Max time.Duration `help:"The maximum total time to allow retries" default:"5m"` Min time.Duration `help:"The minimum time between retries" default:"100ms"` }
ExponentialBackoff provides delays between failing attempts.
func (*ExponentialBackoff) Maxed ¶
func (e *ExponentialBackoff) Maxed() bool
Maxed returns true if the wait time has maxed out.
Click to show internal directories.
Click to hide internal directories.