Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct { // Type is the policy type Type Kind // Attempts to retry Retry int // Factor is the backoff rate Factor int // Sleep is the initial duration to wait before retrying Sleep time.Duration }
Policy represents a retryable function policy.
func NewBackoff ¶
New creates a new backoff retryable policy, which increases the delay between subsequent retries by the secified factor, until the number of retries has been reached.
Click to show internal directories.
Click to hide internal directories.