Documentation ¶
Index ¶
- type BaseInvoker
- func (b *BaseInvoker) AddHeader(headers map[string]string) *BaseInvokerdeprecated
- func (b *BaseInvoker) AddHeaders(headers map[string]string) *BaseInvoker
- func (b *BaseInvoker) Invoke() (interface{}, error)
- func (b *BaseInvoker) ReplaceCredentialWhen(fun func(auth.ICredential) auth.ICredential) *BaseInvoker
- func (b *BaseInvoker) WithRetry(retryTimes int, checker RetryChecker, backoffStrategy retry.Strategy) *BaseInvoker
- type RetryChecker
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 ¶
Click to show internal directories.
Click to hide internal directories.