Documentation ¶
Overview ¶
Package gaws provides functions and variables that allow subpackages to work with AWS services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxTries int = 5
MaxTries is the number of times to retry a failing AWS request.
View Source
var Region string = "us-east-1"
Region is the name of the default region for gaws to use.
Functions ¶
This section is empty.
Types ¶
type AWSRequest ¶
type AWSRequest struct { RetryPredicate retryPredicate URL string Method string Headers map[string]string Body []byte }
AWSRequest is a request to AWS. It is used instead of http.Request to facilitate retries.
func (*AWSRequest) Do ¶
func (r *AWSRequest) Do() ([]byte, error)
Do makes the request to AWS and retries with an exponential backoff.
Click to show internal directories.
Click to hide internal directories.