Documentation ¶
Index ¶
- Constants
- func ErrorCode(err error) string
- func ErrorCodeIs(err error, code string) bool
- func ErrorMessage(err error) string
- func ErrorMessageHasPrefix(err error, prefix string) bool
- func JitteredExponentialBackoff(init, max time.Duration) <-chan time.Duration
- func StandardJitteredExponentialBackoff() <-chan time.Duration
Constants ¶
View Source
const RequestError = "RequestError"
Variables ¶
This section is empty.
Functions ¶
func ErrorCodeIs ¶
func ErrorMessage ¶
func ErrorMessageHasPrefix ¶
func JitteredExponentialBackoff ¶
JitteredExponentialBackoff sleeps and returns true to make it easy to implement jittered exponential backoff in a for-loop. Here's how you should use it:
for range awsutil.JitteredExponentialBackoff(time.Second, 10*time.Second) { }
func StandardJitteredExponentialBackoff ¶
StandardJitteredExponentialBackoff returns a JitteredExponentialBackoff configured to start at 1 second and backoff to 10 seconds between attempts. Here's how you should use it:
for range awsutil.StandardJitteredExponentialBackoff() { }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.