type backoffEntry …
type Backoff …
func NewFakeBackOff(initial, max time.Duration, tc *testingclock.FakeClock) *Backoff { … }
func NewBackOff(initial, max time.Duration) *Backoff { … }
func NewFakeBackOffWithJitter(initial, max time.Duration, tc *testingclock.FakeClock, maxJitterFactor float64) *Backoff { … }
func NewBackOffWithJitter(initial, max time.Duration, maxJitterFactor float64) *Backoff { … }
func newBackoff(clock clock.Clock, initial, max time.Duration, maxJitterFactor float64) *Backoff { … }
func (p *Backoff) Get(id string) time.Duration { … }
func (p *Backoff) Next(id string, eventTime time.Time) { … }
func (p *Backoff) Reset(id string) { … }
func (p *Backoff) IsInBackOffSince(id string, eventTime time.Time) bool { … }
func (p *Backoff) IsInBackOffSinceUpdate(id string, eventTime time.Time) bool { … }
func (p *Backoff) GC() { … }
func (p *Backoff) DeleteEntry(id string) { … }
func (p *Backoff) initEntryUnsafe(id string) *backoffEntry { … }
func (p *Backoff) jitter(delay time.Duration) time.Duration { … }
func hasExpired(eventTime time.Time, lastUpdate time.Time, maxDuration time.Duration) bool { … }