Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultExponentialBackoff ¶
func GetDefaultExponentialBackoff() (*backoff.ExponentialBackOff, error)
GetDefaultExponentialBackoff returns a new ExponentialBackoff configuration
func GetExponentialBackoff ¶
func GetExponentialBackoff(initialInterval time.Duration, maxRetries int) (*backoff.ExponentialBackOff, error)
GetExponentialBackoff returns a new ExponentialBackoff configuration for the supplied initialInterval and maximum number of retries.
ExponentialBackoff limits the maximum wait time, so this method computes the maximum amount of time to wait to ensure that all of the expected retries complete.
initialInterval is the amount of time to wait after the first failure before retrying the operation maxRetries is the number of times backoff should retry in the event of a failure
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.