custom

package
v0.0.0-...-930f148 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

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

type CustomerUnmarshalError

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

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

DynamicCredentialsIncludeError func return Credentials info and error info when error appear

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

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