custom

package
v1.0.134 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AfterCall

type AfterCall func(RequestInfo, interface{})

type BeforeCall

type BeforeCall func(RequestInfo) interface{}

type CustomerUnmarshalData added in v1.0.21

type CustomerUnmarshalData func(ctx context.Context, info RequestInfo, resp response.VolcengineResponse) interface{}

type CustomerUnmarshalError added in v1.0.6

type CustomerUnmarshalError func(ctx context.Context, meta RequestMetadata, resp response.VolcengineResponse) error

type DynamicCredentials

type DynamicCredentials func(ctx context.Context) (*credentials.Credentials, *string)

type DynamicCredentialsIncludeError added in v1.0.18

type DynamicCredentialsIncludeError func(ctx context.Context) (*credentials.Credentials, *string, error)

DynamicCredentialsIncludeError func return Credentials info and error info when error appear

type ExtendContextWithMeta added in v1.0.64

type ExtendContextWithMeta func(ctx context.Context, meta RequestMetadata) context.Context

type ExtendHttpRequest

type ExtendHttpRequest func(ctx context.Context, request *http.Request)

type ExtendHttpRequestWithMeta

type ExtendHttpRequestWithMeta func(ctx context.Context, request *http.Request, meta RequestMetadata)

type ExtraHttpJsonBody

type ExtraHttpJsonBody func(ctx context.Context, input *map[string]interface{}, meta RequestMetadata)

type ExtraHttpParameters

type ExtraHttpParameters func(ctx context.Context) map[string]string

type ExtraHttpParametersWithMeta

type ExtraHttpParametersWithMeta func(ctx context.Context, meta RequestMetadata) map[string]string

type ForceJsonNumberDecode added in v1.0.42

type ForceJsonNumberDecode func(ctx context.Context, info RequestInfo) bool

type LogAccount

type LogAccount func(ctx context.Context) *string

type RequestInfo

type RequestInfo struct {
	Context    context.Context
	Request    *http.Request
	Response   *http.Response
	Name       string
	Method     string
	ClientInfo metadata.ClientInfo
	URI        string
	Header     http.Header
	URL        *url.URL
	Input      interface{}
	Output     interface{}
	Metadata   response.ResponseMetadata
	Error      error
}

type RequestMetadata

type RequestMetadata struct {
	ServiceName string
	Version     string
	Action      string
	HttpMethod  string
	Region      string
	Request     *http.Request
	RawQuery    *url.Values
}

type SdkInterceptor

type SdkInterceptor struct {
	Before BeforeCall
	After  AfterCall
}

Jump to

Keyboard shortcuts

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