retry

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemporalStorageExponentialBackoff

func GetTemporalStorageExponentialBackoff() *backoff.ExponentialBackOff

Types

type BackoffHTTPRetry

type BackoffHTTPRetry struct {
	// contains filtered or unexported fields
}

func NewBackoffRetry

func NewBackoffRetry(errMsg string, maxRetries uint64, httpClient *http.Client, logger *logrus.Entry) *BackoffHTTPRetry

NewBackoffRetry Creates an exponential backoff retry to use httpClient for connections. Will retry if a temporary error or 5xx or 429 status code in response.

func (*BackoffHTTPRetry) Send

func (s *BackoffHTTPRetry) Send(req *http.Request) error

Jump to

Keyboard shortcuts

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