README ¶ backoff small, simple package for easy backoffs see example dir for usage Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Backoff func New(initial uint64, current uint64, max uint64, algo func(uint64) uint64) (*Backoff, error) func (bo *Backoff) Backoff() func (bo *Backoff) Reset() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Backoff ¶ type Backoff struct { sync.Mutex // contains filtered or unexported fields } func New ¶ func New(initial uint64, current uint64, max uint64, algo func(uint64) uint64) (*Backoff, error) func (*Backoff) Backoff ¶ func (bo *Backoff) Backoff() func (*Backoff) Reset ¶ func (bo *Backoff) Reset() Source Files ¶ View all Source files backoff.go Directories ¶ Show internal Expand all Path Synopsis example expbo linbo Click to show internal directories. Click to hide internal directories.