Versions in this module Expand all Collapse all v1 v1.5.1 Feb 8, 2017 v1.5.0 Oct 23, 2016 Changes in this version + type Backoff struct + Clock clock.Clock + func NewBackOff(initial, max time.Duration) *Backoff + func NewFakeBackOff(initial, max time.Duration, tc *clock.FakeClock) *Backoff + func (p *Backoff) DeleteEntry(id string) + func (p *Backoff) GC() + func (p *Backoff) Get(id string) time.Duration + func (p *Backoff) IsInBackOffSince(id string, eventTime time.Time) bool + func (p *Backoff) IsInBackOffSinceUpdate(id string, eventTime time.Time) bool + func (p *Backoff) Next(id string, eventTime time.Time) + func (p *Backoff) Reset(id string) + type RateLimiter interface + Accept func() + QPS func() float32 + Saturation func() float64 + Stop func() + TryAccept func() bool + func NewFakeAlwaysRateLimiter() RateLimiter + func NewFakeNeverRateLimiter() RateLimiter + func NewTokenBucketRateLimiter(qps float32, burst int) RateLimiter