package middleware

import "github.com/aws/aws-sdk-go-v2/aws/middleware"

Index

Types

type AttemptClockSkewMiddleware

type AttemptClockSkewMiddleware struct{}

AttemptClockSkewMiddleware calculates the clock skew of the SDK client TODO: Could be a better name, since this calculates more then skew

func (AttemptClockSkewMiddleware) HandleDeserialize

HandleDeserialize calculates response metadata and clock skew

func (AttemptClockSkewMiddleware) ID

ID is the middleware identifier

type RequestInvocationIDMiddleware

type RequestInvocationIDMiddleware struct{}

RequestInvocationIDMiddleware is a Smithy BuildMiddleware that will generate a unique ID for logical API operation invocation.

func (RequestInvocationIDMiddleware) HandleBuild

HandleBuild attaches a unique operation invocation id for the operation to the request

func (RequestInvocationIDMiddleware) ID

ID the identifier for the RequestInvocationIDMiddleware

type ResponseMetadata

type ResponseMetadata struct {
	ResponseAt  time.Time
	ServerTime  time.Time
	AttemptSkew time.Duration
}

ResponseMetadata is metadata about the transport layer response

func GetResponseMetadata

func GetResponseMetadata(metadata middleware.Metadata) (v ResponseMetadata)

GetResponseMetadata retrieves response metadata from the context, if nil returns an empty value

Source Files

middleware.go

Version
v0.21.0
Published
Apr 22, 2020
Platform
darwin/amd64
Imports
7 packages
Last checked
5 minutes ago

Tools for package owners.