invoker

package
v0.1.109 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 6 Imported by: 165

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseInvoker

type BaseInvoker struct {
	Exchange *exchange.SdkExchange
	// contains filtered or unexported fields
}

func NewBaseInvoker

func NewBaseInvoker(client *core.HcHttpClient, request interface{}, meta *def.HttpRequestDef) *BaseInvoker

func (*BaseInvoker) AddHeader deprecated

func (b *BaseInvoker) AddHeader(headers map[string]string) *BaseInvoker

Deprecated: This function will be removed in the future version, use AddHeaders instead.

func (*BaseInvoker) AddHeaders added in v0.1.80

func (b *BaseInvoker) AddHeaders(headers map[string]string) *BaseInvoker

func (*BaseInvoker) Invoke

func (b *BaseInvoker) Invoke() (interface{}, error)

func (*BaseInvoker) ReplaceCredentialWhen

func (b *BaseInvoker) ReplaceCredentialWhen(fun func(auth.ICredential) auth.ICredential) *BaseInvoker

func (*BaseInvoker) WithRetry

func (b *BaseInvoker) WithRetry(retryTimes int, checker RetryChecker, backoffStrategy retry.Strategy) *BaseInvoker

type RetryChecker

type RetryChecker func(interface{}, error) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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