Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(ctx context.Context, url, encoding string, headers map[string]string) (interface{}, error)
- func (c *Client) Get(ctx context.Context, url, encoding string, headers map[string]string) (interface{}, error)
- func (c *Client) Post(ctx context.Context, url, encoding string, headers map[string]string, ...) (interface{}, error)
- func (c *Client) Put(ctx context.Context, url, encoding string, headers map[string]string, ...) (interface{}, error)
- func (c *Client) Request(ctx context.Context, cfg RequestConfig) (interface{}, error)
- type Config
- type RequestConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles HTTP requests to backend services
func (*Client) Delete ¶
func (c *Client) Delete(ctx context.Context, url, encoding string, headers map[string]string) (interface{}, error)
Delete makes a DELETE request
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, url, encoding string, headers map[string]string) (interface{}, error)
Get makes a GET request
func (*Client) Post ¶
func (c *Client) Post(ctx context.Context, url, encoding string, headers map[string]string, body io.Reader) (interface{}, error)
Post makes a POST request
Click to show internal directories.
Click to hide internal directories.