Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContext ¶
Types ¶
type InfiniteBackoff ¶
type InfiniteBackoff struct { // The initial duration. Duration time.Duration // Factor is used to scale up the Duration until it reaches MaxDuration. // Should be at least 1.0. Factor float64 // A limit on step size. Once reached, this value will be used as the interval. MaxDuration time.Duration // contains filtered or unexported fields }
func (*InfiniteBackoff) Step ¶
func (b *InfiniteBackoff) Step() time.Duration
Step returns the next duration in the backoff sequence. It modifies the receiver and is not thread-safe.
Click to show internal directories.
Click to hide internal directories.