core

package
v0.0.11-beta Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 14 Imported by: 5

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) Sync

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

func (*HcHttpClient) WithCredential

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

func (*HcHttpClient) WithEndpoint

func (hc *HcHttpClient) WithEndpoint(endpoint string) *HcHttpClient

type HcHttpClientBuilder

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

func NewHcHttpClientBuilder

func NewHcHttpClientBuilder() *HcHttpClientBuilder

func (*HcHttpClientBuilder) Build

func (builder *HcHttpClientBuilder) Build() *HcHttpClient

func (*HcHttpClientBuilder) WithCredential

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

func (*HcHttpClientBuilder) WithCredentialsType

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

func (*HcHttpClientBuilder) WithEndpoint

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

func (*HcHttpClientBuilder) WithHttpConfig

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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