Documentation ¶
Index ¶
- func GetFieldInfo(reqDef *def.HttpRequestDef, item *def.FieldDef) (bool, string)
- type HcHttpClient
- func (hc *HcHttpClient) GetFieldJsonTags(structName interface{}) map[string]string
- func (hc *HcHttpClient) GetFieldValueByName(name string, jsonTag map[string]string, structName interface{}) (reflect.Value, error)
- func (hc *HcHttpClient) Sync(req interface{}, reqDef *def.HttpRequestDef) (interface{}, error)
- func (hc *HcHttpClient) WithCredential(credential auth.ICredential) *HcHttpClient
- func (hc *HcHttpClient) WithEndpoint(endpoint string) *HcHttpClient
- type HcHttpClientBuilder
- func (builder *HcHttpClientBuilder) Build() *HcHttpClient
- func (builder *HcHttpClientBuilder) WithCredential(iCredential auth.ICredential) *HcHttpClientBuilder
- func (builder *HcHttpClientBuilder) WithCredentialsType(credentialsType string) *HcHttpClientBuilder
- func (builder *HcHttpClientBuilder) WithEndpoint(endpoint string) *HcHttpClientBuilder
- func (builder *HcHttpClientBuilder) WithHttpConfig(httpConfig *config.HttpConfig) *HcHttpClientBuilder
- func (builder *HcHttpClientBuilder) WithRegion(region *region.Region) *HcHttpClientBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFieldInfo ¶
Types ¶
type HcHttpClient ¶
type HcHttpClient struct {
// contains filtered or unexported fields
}
func NewHcHttpClient ¶
func NewHcHttpClient(httpClient *impl.DefaultHttpClient) *HcHttpClient
func (*HcHttpClient) GetFieldJsonTags ¶
func (hc *HcHttpClient) GetFieldJsonTags(structName interface{}) map[string]string
func (*HcHttpClient) GetFieldValueByName ¶
func (*HcHttpClient) Sync ¶
func (hc *HcHttpClient) Sync(req interface{}, reqDef *def.HttpRequestDef) (interface{}, 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 { CredentialsType []string // 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
func (*HcHttpClientBuilder) WithRegion ¶
func (builder *HcHttpClientBuilder) WithRegion(region *region.Region) *HcHttpClientBuilder
Click to show internal directories.
Click to hide internal directories.