Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = BackoffPolicy{ []int{0, 10, 10, 100, 100, 500, 500, 3000, 3000, 5000}, }
Default is a backoff policy ranging up to 5 seconds.
Functions ¶
This section is empty.
Types ¶
type BackoffPolicy ¶
type BackoffPolicy struct {
Millis []int
}
BackoffPolicy implements a backoff policy, randomizing its delays and saturating at the final value in Millis.
Click to show internal directories.
Click to hide internal directories.