Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Retry ¶
type Retry struct { Errors <-chan error // contains filtered or unexported fields }
Retry represents a
func NewRetry ¶
func NewRetry() *Retry
NewRetry with an exponential backoff. Errors are reported through a synchronous errors channel and _must_ be consumed in a separate goroutine. The Retry will be blocked until the previous error is consumed
Click to show internal directories.
Click to hide internal directories.