invoker

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 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

func (b *BaseInvoker) AddHeader(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