core

package
v0.1.91 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HcHttpClient

type HcHttpClient struct {
	// contains filtered or unexported fields
}

func NewHcHttpClient

func NewHcHttpClient(httpClient *impl.DefaultHttpClient) *HcHttpClient

func (*HcHttpClient) GetCredential added in v0.0.90

func (hc *HcHttpClient) GetCredential() auth.ICredential

func (*HcHttpClient) PreInvoke deprecated added in v0.0.90

func (hc *HcHttpClient) PreInvoke(headers map[string]string) *HcHttpClient

Deprecated: This function will be removed in the future version. Use WithExtraHeaders instead.

func (*HcHttpClient) Sync

func (hc *HcHttpClient) Sync(req interface{}, reqDef *def.HttpRequestDef) (interface{}, error)

func (*HcHttpClient) SyncInvoke added in v0.0.90

func (hc *HcHttpClient) SyncInvoke(req interface{}, reqDef *def.HttpRequestDef,
	exchange *exchange.SdkExchange) (interface{}, error)

func (*HcHttpClient) SyncInvokeWithExtraHeaders added in v0.1.80

func (hc *HcHttpClient) SyncInvokeWithExtraHeaders(req interface{}, reqDef *def.HttpRequestDef,
	exchange *exchange.SdkExchange, extraHeaders map[string]string) (interface{}, error)

func (*HcHttpClient) WithCredential

func (hc *HcHttpClient) WithCredential(credential auth.ICredential) *HcHttpClient

func (*HcHttpClient) WithEndpoints added in v0.1.27

func (hc *HcHttpClient) WithEndpoints(endpoints []string) *HcHttpClient

func (*HcHttpClient) WithErrorHandler added in v0.1.62

func (hc *HcHttpClient) WithErrorHandler(errorHandler sdkerr.ErrorHandler) *HcHttpClient

func (*HcHttpClient) WithExtraHeaders added in v0.1.88

func (hc *HcHttpClient) WithExtraHeaders(extraHeaders map[string]string) *HcHttpClient

type HcHttpClientBuilder

type HcHttpClientBuilder struct {
	CredentialsType []string
	// contains filtered or unexported fields
}

func NewHcHttpClientBuilder

func NewHcHttpClientBuilder() *HcHttpClientBuilder

func (*HcHttpClientBuilder) Build deprecated

func (builder *HcHttpClientBuilder) Build() *HcHttpClient

Deprecated: This function may panic under certain circumstances. Use SafeBuild instead.

func (*HcHttpClientBuilder) SafeBuild added in v0.1.84

func (builder *HcHttpClientBuilder) SafeBuild() (client *HcHttpClient, err error)

func (*HcHttpClientBuilder) WithCredential

func (builder *HcHttpClientBuilder) WithCredential(iCredential auth.ICredential) *HcHttpClientBuilder

func (*HcHttpClientBuilder) WithCredentialsType

func (builder *HcHttpClientBuilder) WithCredentialsType(credentialsType string) *HcHttpClientBuilder

func (*HcHttpClientBuilder) WithDerivedAuthServiceName added in v0.0.79

func (builder *HcHttpClientBuilder) WithDerivedAuthServiceName(derivedAuthServiceName string) *HcHttpClientBuilder

func (*HcHttpClientBuilder) WithEndpoint deprecated

func (builder *HcHttpClientBuilder) WithEndpoint(endpoint string) *HcHttpClientBuilder

Deprecated: As of 0.1.27, because of the support of the multi-endpoint feature, use WithEndpoints instead

func (*HcHttpClientBuilder) WithEndpoints added in v0.1.27

func (builder *HcHttpClientBuilder) WithEndpoints(endpoints []string) *HcHttpClientBuilder

func (*HcHttpClientBuilder) WithErrorHandler added in v0.1.62

func (builder *HcHttpClientBuilder) WithErrorHandler(errorHandler sdkerr.ErrorHandler) *HcHttpClientBuilder

func (*HcHttpClientBuilder) WithHttpConfig

func (builder *HcHttpClientBuilder) WithHttpConfig(httpConfig *config.HttpConfig) *HcHttpClientBuilder

func (*HcHttpClientBuilder) WithRegion

func (builder *HcHttpClientBuilder) WithRegion(region *region.Region) *HcHttpClientBuilder

Jump to

Keyboard shortcuts

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