Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callback ¶
type Callback func() error
Callback is a callback that must return nil to escape the retry loop.
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error allows the last error to be retrieved.
type Retrier ¶
type Retrier struct {
// contains filtered or unexported fields
}
Retrier implements retry loop logic.
func Forever ¶
func Forever() *Retrier
Froever returns a retrier that will retry soething forever until a nil error is returned.
Click to show internal directories.
Click to hide internal directories.