Documentation ¶
Index ¶
- Constants
- func ParseHostURL(host string) (*url.URL, error)
- type Client
- func (cli *Client) Close() error
- func (cli *Client) Delete(ctx context.Context, path string, query url.Values, ...) (ServerResponse, error)
- func (cli *Client) Get(ctx context.Context, path string, query url.Values, ...) (ServerResponse, error)
- func (cli *Client) Head(ctx context.Context, path string, query url.Values, ...) (ServerResponse, error)
- func (cli *Client) PATCH(ctx context.Context, path string, query url.Values, obj interface{}, ...) (ServerResponse, error)
- func (cli *Client) Post(ctx context.Context, path string, query url.Values, obj interface{}, ...) (ServerResponse, error)
- func (cli *Client) PostRaw(ctx context.Context, path string, query url.Values, body io.Reader, ...) (ServerResponse, error)
- func (cli *Client) Put(ctx context.Context, path string, query url.Values, obj interface{}, ...) (ServerResponse, error)
- func (cli *Client) PutRaw(ctx context.Context, path string, query url.Values, body io.Reader, ...) (ServerResponse, error)
- type ServerResponse
Constants ¶
View Source
const ( MAX_IDLE_CONNS = 100 MAX_IDLE_CONNS_PER_HOST = 100 IDLE_CONN_TIMEOUT = 90 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
var GatewayClient *Client
type ServerResponse ¶
Click to show internal directories.
Click to hide internal directories.