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
}
Backoff handles backing off executions.
func NewBackoff ¶
func NewBackoff(initialBackoffDuration time.Duration, maxBackoffDuration time.Duration, backoffResetTimeout time.Duration) *Backoff
NewBackoff creates an instance of Backoff.
func (*Backoff) Backoff ¶
Backoff execution for the given key. Returns time till execution is backed off.
func (*Backoff) IsBackedOff ¶
IsBackedOff returns true if execution is backed off for the given key.
func (*Backoff) RemoveBackoff ¶
RemoveBackoff removes backoff data for the given key.
func (*Backoff) RemoveStaleBackoffData ¶
RemoveStaleBackoffData removes stale backoff data.
Click to show internal directories.
Click to hide internal directories.