Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeConstant = "constant" TypeLinear = "linear" TypeExponential = "exponential" )
View Source
const DefaultInterval = 10
View Source
const DefaultMultiplier = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constant ¶
type Constant struct {
Interval int
}
func NewConstant ¶
Constant backoff has always the same interval
type Exponential ¶
func NewExponential ¶
func NewExponential(interval int, multiplier *int) *Exponential
Exponential backoff provides a backoff implementation where the next delay upon failure is a multiplier of the previous delay
Click to show internal directories.
Click to hide internal directories.