retry

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MediumCheckInterval  = 1000 // 1s
	LongCheckInterval    = 5000 // 5s
	LongTimeoutSec       = 900  // 15 mins
	ReallyLongTimeoutSec = 1800 // 30 mins
	ShortTimeoutSec      = 180  // 3 mins
)

Variables

This section is empty.

Functions

func Retry

func Retry(retryFunc func() error, numTimes int, backoff int) error

func WaitUntilComplete

func WaitUntilComplete(timeoutSec int, checkInterval int, checkFunc func() (bool, error)) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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