Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Delete(ctx context.Context, path string) error
- func (c *Client) Get(ctx context.Context, path string, target interface{}) error
- func (c *Client) Patch(ctx context.Context, path string, target interface{}, body interface{}) error
- func (c *Client) Post(ctx context.Context, path string, target interface{}, body interface{}) error
- type Option
Constants ¶
View Source
const ( Seconds30 = 30 * time.Second MaxIdleConns = 100 IdleConnTimeout = 90 * time.Second TLSHandshakeTimeout = 10 * time.Second ExpectContinueTimeout = 1 * time.Second )
View Source
const ( Attempts = 10 Delay = time.Millisecond * 100 Error400 = 400 Error500 = 500 )
Variables ¶
View Source
var (
ErrStatus = errors.New("server replied with status: ")
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.