Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + const DefaultInitialInterval + const DefaultMaxElapsedTime + const DefaultMaxInterval + const DefaultMultiplier + const DefaultRandomizationFactor + const Stop + var SystemClock = systemClock + func Retry(f func() error, b BackOff) error + func RetryNotify(f func() error, b BackOff, notify func(err error, wait time.Duration)) error + type BackOff interface + NextBackOff func() time.Duration + Reset func() + type Clock interface + Now func() time.Time + type ConstantBackOff struct + Interval time.Duration + func NewConstantBackOff(d time.Duration) *ConstantBackOff + func (b *ConstantBackOff) NextBackOff() time.Duration + func (b *ConstantBackOff) Reset() + type ExponentialBackOff struct + Clock Clock + InitialInterval time.Duration + MaxElapsedTime time.Duration + MaxInterval time.Duration + Multiplier float64 + RandomizationFactor float64 + func NewExponentialBackOff() *ExponentialBackOff + func (b *ExponentialBackOff) GetElapsedTime() time.Duration + func (b *ExponentialBackOff) NextBackOff() time.Duration + func (b *ExponentialBackOff) Reset() + type StopBackOff struct + func (b *StopBackOff) NextBackOff() time.Duration + func (b *StopBackOff) Reset() + type Ticker struct + C <-chan time.Time + func NewTicker(b BackOff) *Ticker + func (t *Ticker) Stop() + type ZeroBackOff struct + func (b *ZeroBackOff) NextBackOff() time.Duration + func (b *ZeroBackOff) Reset()