Versions in this module Expand all Collapse all v1 v1.0.0 Oct 14, 2020 Changes in this version + func Register(b Backoff, name string) + func RetryAfterHTTP(rsp *http.Response) time.Duration + func ShouldRetryHTTP(rsp *http.Response) bool + func ShouldRetryPostgreSQL(err error) bool + type Backoff struct + MaxRetries int + func New(ctx context.Context, retries int) *Backoff + func (b *Backoff) Err() error + func (b *Backoff) NextDelay() time.Duration + func (b *Backoff) NumRetries() int + func (b *Backoff) Ongoing() bool + func (b *Backoff) Wait() + func (b *Backoff) WaitFor(d time.Duration)