A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/sdk-for-go/api/aws/client/ below:

client - Amazon Web Services

Internal call graph ▹

Internal call graph ▾

In the call graph viewer below, each node is a function belonging to this package and its children are the functions it calls—perhaps dynamically.

The root nodes are the entry points of the package: functions that may be called from outside the package. There may be non-exported or anonymous functions among them if they are called dynamically from another package.

Click a node to visit that function's source code. From there you can visit its callers by clicking its declaring func token.

Functions may be omitted if they were determined to be unreachable in the particular programs or tests that were analyzed.

Constants ¶
const (
    
    DefaultRetryerMaxNumRetries = 3

    
    DefaultRetryerMinRetryDelay = 30 * time.Millisecond

    
    DefaultRetryerMinThrottleDelay = 500 * time.Millisecond

    
    DefaultRetryerMaxRetryDelay = 300 * time.Second

    
    DefaultRetryerMaxThrottleDelay = 300 * time.Second
)
Variables ¶
var LogHTTPRequestHandler = request.NamedHandler{
    Name: "awssdk.client.LogRequest",
    Fn:   logRequest,
}

LogHTTPRequestHandler is a SDK request handler to log the HTTP request sent to a service. Will include the HTTP request body if the LogLevel of the request matches LogDebugWithHTTPBody.

var LogHTTPRequestHeaderHandler = request.NamedHandler{
    Name: "awssdk.client.LogRequestHeader",
    Fn:   logRequestHeader,
}

LogHTTPRequestHeaderHandler is a SDK request handler to log the HTTP request sent to a service. Will only log the HTTP request's headers. The request payload will not be read.

var LogHTTPResponseHandler = request.NamedHandler{
    Name: "awssdk.client.LogResponse",
    Fn:   logResponse,
}

LogHTTPResponseHandler is a SDK request handler to log the HTTP response received from a service. Will include the HTTP response body if the LogLevel of the request matches LogDebugWithHTTPBody.

var LogHTTPResponseHeaderHandler = request.NamedHandler{
    Name: "awssdk.client.LogResponseHeader",
    Fn:   logResponseHeader,
}

LogHTTPResponseHeaderHandler is a SDK request handler to log the HTTP response received from a service. Will only log the HTTP response's headers. The response payload will not be read.

type Client ¶
type Client struct {
    request.Retryer
    metadata.ClientInfo

    Config   aws.Config
    Handlers request.Handlers
}

A Client implements the base client request and response handling used by all service clients.

func New ¶
func New(cfg aws.Config, info metadata.ClientInfo, handlers request.Handlers, options ...func(*Client)) *Client

New will return a pointer to a new initialized service client.

func (*Client) AddDebugHandlers ¶
func (c *Client) AddDebugHandlers()

AddDebugHandlers injects debug logging handlers into the service to log request debug information.

func (*Client) NewRequest ¶
func (c *Client) NewRequest(operation *request.Operation, params interface{}, data interface{}) *request.Request

NewRequest returns a new Request pointer for the service API operation and parameters.

type Config ¶
type Config struct {
    Config         *aws.Config
    Handlers       request.Handlers
    PartitionID    string
    Endpoint       string
    SigningRegion  string
    SigningName    string
    ResolvedRegion string

    
    
    
    
    SigningNameDerived bool
}

A Config provides configuration to a service client instance.

type ConfigNoResolveEndpointProvider ¶
type ConfigNoResolveEndpointProvider interface {
    ClientConfigNoResolveEndpoint(cfgs ...*aws.Config) Config
}

ConfigNoResolveEndpointProvider same as ConfigProvider except it will not resolve the endpoint automatically. The service client's endpoint must be provided via the aws.Config.Endpoint field.

type ConfigProvider ¶
type ConfigProvider interface {
    ClientConfig(serviceName string, cfgs ...*aws.Config) Config
}

ConfigProvider provides a generic way for a service client to receive the ClientConfig without circular dependencies.

type DefaultRetryer ¶
type DefaultRetryer struct {
    
    
    NumMaxRetries int

    
    
    MinRetryDelay time.Duration

    
    
    MinThrottleDelay time.Duration

    
    
    MaxRetryDelay time.Duration

    
    
    MaxThrottleDelay time.Duration
}

DefaultRetryer implements basic retry logic using exponential backoff for most services. If you want to implement custom retry logic, you can implement the request.Retryer interface.

func (DefaultRetryer) MaxRetries ¶
func (d DefaultRetryer) MaxRetries() int

MaxRetries returns the number of maximum returns the service will use to make an individual API request.

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

RetryRules returns the delay duration before retrying this request again

func (DefaultRetryer) ShouldRetry ¶
func (d DefaultRetryer) ShouldRetry(r *request.Request) bool

ShouldRetry returns true if the request should be retried.

type NoOpRetryer ¶
type NoOpRetryer struct{}

NoOpRetryer provides a retryer that performs no retries. It should be used when we do not want retries to be performed.

func (NoOpRetryer) MaxRetries ¶
func (d NoOpRetryer) MaxRetries() int

MaxRetries returns the number of maximum returns the service will use to make an individual API; For NoOpRetryer the MaxRetries will always be zero.

func (NoOpRetryer) RetryRules ¶
func (d NoOpRetryer) RetryRules(_ *request.Request) time.Duration

RetryRules returns the delay duration before retrying this request again; since NoOpRetryer does not retry, RetryRules always returns 0.

func (NoOpRetryer) ShouldRetry ¶
func (d NoOpRetryer) ShouldRetry(_ *request.Request) bool

ShouldRetry will always return false for NoOpRetryer, as it should never retry.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4