Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithFactor ¶
func WithFactor(factor float64) backoffOption
func WithJitter ¶
func WithJitter(jitter float64) backoffOption
Types ¶
type Backoff ¶
type Backoff struct {
// contains filtered or unexported fields
}
Backoff represents a backoff timer with configurable parameters.
func NewBackoff ¶
func NewBackoff(opts ...backoffOption) *Backoff
NewBackoff creates a new Backoff instance with the given configuration.
Click to show internal directories.
Click to hide internal directories.