Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backoffer ¶
type Backoffer struct {
// contains filtered or unexported fields
}
Backoffer is a backoff policy for retrying operations.
func InitialBackoffer ¶
InitialBackoffer make the initial state for retrying.
- `base` defines the initial time interval to wait before each retry.
- `max` defines the max time interval to wait before each retry.
- `total` defines the max total time duration cost in retrying. If it's 0, it means infinite retry until success.
func (*Backoffer) SetRetryableChecker ¶
SetRetryableChecker sets the retryable checker.
Click to show internal directories.
Click to hide internal directories.