retry

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRetry = wait.Backoff{
	Steps:    envutil.LookupEnvIntOr("RETRY_BACKOFF_STEPS", 5),
	Duration: envutil.LookupEnvDurationOr("RETRY_BACKOFF_DURATION", 10*time.Millisecond),
	Factor:   envutil.LookupEnvFloatOr("RETRY_BACKOFF_FACTOR", 2.),
}

DefaultRetry is a default retry backoff settings when retrying API calls Retry Seconds

1      0.01
2      0.03
3      0.07
4      0.15
5      0.31

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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