retryer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: BSD-3-Clause-Clear Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultRetryer

type DefaultRetryer struct {
	request.Retryer
	Delay time.Duration
}

DefaultRetryer implements an AWS `request.Retryer` that has a custom delay for credential errors (403 statuscode). This is needed in order to wait for credentials to be valid for SQS requests due to AWS "eventually consistent" credentials: https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html

func (DefaultRetryer) RetryRules

func (r DefaultRetryer) RetryRules(req *request.Request) time.Duration

RetryRules returns the delay for the next request to be made

func (DefaultRetryer) ShouldRetry

func (r DefaultRetryer) ShouldRetry(req *request.Request) bool

ShouldRetry determines if the passed request should be retried

Jump to

Keyboard shortcuts

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