backoffconfig

package
v0.0.0-...-194cf1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 5

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL