Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackOff ¶
type BackOff struct {
// contains filtered or unexported fields
}
func NewBackOffStrategy ¶
func NewBackOffStrategy(proportion float64, options ...OptionFunc) *BackOff
type OptionFunc ¶
type OptionFunc func(*strategyOption)
func WithIndexFactor ¶
func WithIndexFactor(d int) OptionFunc
func WithInitTime ¶
func WithInitTime(d int) OptionFunc
func WithMaxBackoffTime ¶
func WithMaxBackoffTime(d int) OptionFunc
type RetryStrategy ¶
type RetryStrategy interface {
GetNext() int
Reset()
}
Click to show internal directories.
Click to hide internal directories.