retryer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteRetryer

type DeleteRetryer struct {
	NumMaxRetries int
}

DeleteRetryer configures retrying for all AWS delete requests

func (DeleteRetryer) MaxRetries

func (dr DeleteRetryer) MaxRetries() int

MaxRetries returns the number of retries the retryer should attempt

func (DeleteRetryer) RetryRules

func (dr DeleteRetryer) RetryRules(r *request.Request) time.Duration

RetryRules define how a request is retried upon failure. Uses the client.DefaultRetryer.RetryRules function to calculate exponential backoff

func (DeleteRetryer) ShouldRetry

func (dr DeleteRetryer) ShouldRetry(r *request.Request) bool

ShouldRetry returns whether a request should be retried. Requests will be retried if the error code is in retryableCodes or is a retryable/throttle code

Jump to

Keyboard shortcuts

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