Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { DoRequest(ctx context.Context, method, url string, headers map[string]string, payload *RequestPayload) (*HttpResponse, error) Use(middleware Middleware) }
type DefaultHttpClient ¶
type DefaultHttpClient struct {
// contains filtered or unexported fields
}
func NewDefaultHttpClient ¶
func NewDefaultHttpClient() *DefaultHttpClient
func (*DefaultHttpClient) DoRequest ¶
func (c *DefaultHttpClient) DoRequest(ctx context.Context, method, url string, headers map[string]string, payload *RequestPayload) (*HttpResponse, error)
func (*DefaultHttpClient) Use ¶
func (c *DefaultHttpClient) Use(middleware Middleware)
type HttpResponse ¶
type Middleware ¶
type MiddlewareHandler ¶
Click to show internal directories.
Click to hide internal directories.