Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type Strategy[KeyType comparable] struct { // contains filtered or unexported fields }
Strategy defines how to calculate backoff time
func NewStrategy ¶
func NewStrategy[KeyType comparable]( initialDelay, maxDelay time.Duration, factor float64, backoffThreshold uint64, ) *Strategy[KeyType]
NewStrategy returns a backoff strategy
Click to show internal directories.
Click to hide internal directories.