Documentation ¶
Index ¶
- type ClientOptions
- type HttpClient
- func (HttpClient *HttpClient) Delete(ctx context.Context, headers map[string]string, endpoint string, ...) (*Response, error)
- func (HttpClient *HttpClient) DeleteBody(ctx context.Context, headers map[string]string, body IJsonDTO, endpoint string, ...) (*Response, error)
- func (HttpClient *HttpClient) DeleteForm(ctx context.Context, headers map[string]string, form url.Values, ...) (*Response, error)
- func (HttpClient *HttpClient) DeleteXml(ctx context.Context, headers map[string]string, body interface{}, ...) (*Response, error)
- func (HttpClient *HttpClient) Get(ctx context.Context, headers map[string]string, endpoint string, ...) (*Response, error)
- func (HttpClient *HttpClient) Patch(ctx context.Context, headers map[string]string, endpoint string, ...) (*Response, error)
- func (HttpClient *HttpClient) PatchBody(ctx context.Context, headers map[string]string, body IJsonDTO, endpoint string, ...) (*Response, error)
- func (HttpClient *HttpClient) PatchForm(ctx context.Context, headers map[string]string, form url.Values, ...) (*Response, error)
- func (HttpClient *HttpClient) PatchXml(ctx context.Context, headers map[string]string, body interface{}, ...) (*Response, error)
- func (HttpClient *HttpClient) Post(ctx context.Context, headers map[string]string, endpoint string, ...) (*Response, error)
- func (HttpClient *HttpClient) PostBody(ctx context.Context, headers map[string]string, body IJsonDTO, endpoint string, ...) (*Response, error)
- func (HttpClient *HttpClient) PostForm(ctx context.Context, headers map[string]string, form url.Values, ...) (*Response, error)
- func (HttpClient *HttpClient) PostXml(ctx context.Context, headers map[string]string, body interface{}, ...) (*Response, error)
- func (HttpClient *HttpClient) Put(ctx context.Context, headers map[string]string, endpoint string, ...) (*Response, error)
- func (HttpClient *HttpClient) PutBody(ctx context.Context, headers map[string]string, body IJsonDTO, endpoint string, ...) (*Response, error)
- func (HttpClient *HttpClient) PutForm(ctx context.Context, headers map[string]string, form url.Values, ...) (*Response, error)
- func (HttpClient *HttpClient) PutXml(ctx context.Context, headers map[string]string, body interface{}, ...) (*Response, error)
- func (client *HttpClient) WithOptions(optn *ClientOptions) *HttpClient
- type IInternalClient
- type IJsonDTO
- type ITracer
- type Response
- type RetryPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOptions ¶ added in v0.2.1
type ClientOptions struct {
Retry RetryPolicy
}
func DefaultOptions ¶ added in v0.2.1
func DefaultOptions() *ClientOptions
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func NewHttpClientProvider ¶
func NewHttpClientProvider( tracer ITracer, headers map[string]string, ) *HttpClient
- "Constructors"
func NewHttpClientWithClientProvider ¶ added in v0.2.1
func NewHttpClientWithClientProvider( client IInternalClient, tracer ITracer, headers map[string]string, tid string, pid string, flg string, ) *HttpClient
func (*HttpClient) DeleteBody ¶
func (*HttpClient) DeleteForm ¶
func (*HttpClient) WithOptions ¶ added in v0.2.1
func (client *HttpClient) WithOptions( optn *ClientOptions, ) *HttpClient
type IInternalClient ¶ added in v0.2.1
type ITracer ¶
type ITracer interface { ExtractTraceInfo( ctx context.Context, ) (ver, tid, pid, rid, flg string) TraceDependency( ctx context.Context, spanId string, dependencyType string, serviceName string, commandName string, success bool, startTimestamp time.Time, eventTimestamp time.Time, fields map[string]string, ) }
type Response ¶
func (*Response) UnmarshalXml ¶ added in v0.2.2
Click to show internal directories.
Click to hide internal directories.