Versions in this module Expand all Collapse all v1 v1.2.0 Aug 14, 2018 Changes in this version + type Error struct + LastRun error + Reason error + func (e Error) Cause() error + func (e Error) Error() string type Retry + func (r *Retry) ContinueOnNil() *Retry v1.1.0 Feb 23, 2018 Changes in this version + type Condition func(error) bool + func NotOnErrors(errs ...error) Condition + func OnErrors(errs ...error) Condition + type Listener struct + LogTmpErr func(err error) + func (l *Listener) Accept() (net.Conn, error) + type Retry struct + func New(sleep time.Duration) *Retry + func (r *Retry) Attempts(n int) *Retry + func (r *Retry) Backoff(ceil time.Duration) *Retry + func (r *Retry) Condition(fn Condition) *Retry + func (r *Retry) Conditions(fns ...Condition) *Retry + func (r *Retry) Context(ctx context.Context) *Retry + func (r *Retry) Jitter(rat float64) *Retry + func (r *Retry) Log(logFn func(error)) *Retry + func (r *Retry) Run(fn func() error) error + func (r *Retry) Timeout(to time.Duration) *Retry