Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultFactor factor DefaultFactor = math.E // DefaultJitter jitter DefaultJitter = true // DefaultMaxInterval max interval DefaultMaxInterval = 3 * time.Minute // DefaultMinInterval min interval DefaultMinInterval = 100 * time.Millisecond // MaxInt64 the max int64 to avoid overflow MaxInt64 = float64(math.MaxInt64 - 1024) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backoff ¶
type Backoff struct { Factor float64 Jitter bool Max time.Duration Min time.Duration // contains filtered or unexported fields }
Backoff struct
func WithoutJitter ¶
func WithoutJitter() *Backoff
WithoutJitter return backoff instance with default value except jitter
Click to show internal directories.
Click to hide internal directories.