Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action int
const ( Succeed Action = iota // Succeed indicates the Retrier should treat this value as a success. Fail // Fail indicates the Retrier should treat this value as a hard failure and not retry. Retry // Retry indicates the Retrier should treat this value as a soft failure and retry. AdditionalCheck // Additional check is required to determine if it's Fail or Retry )
type AdditionalTest ¶
type Retrier ¶
type Retrier struct {
// contains filtered or unexported fields
}
func NewRetrier ¶
func NewRetrier(n int, initial time.Duration, at AdditionalTest) *Retrier
Click to show internal directories.
Click to hide internal directories.