Versions in this module Expand all Collapse all v1 v1.0.2 Mar 17, 2021 Changes in this version + const DefaultTimeout + func GetNetworkErrsCounter() uint64 + func ResetNetworkErrsCounter() + type Client struct + ExpectTimeouts bool + HealthCheckFn func() bool + HealthCheckInterval time.Duration + HealthCheckTimeout time.Duration + MaxErrResponseSize int64 + func NewClient(url *url.URL, tr http.RoundTripper, newAuthToken func(aud string) string) *Client + func (c *Client) Call(ctx context.Context, method string, values url.Values, body io.Reader, ...) (reply io.ReadCloser, err error) + func (c *Client) Close() + func (c *Client) IsOnline() bool + func (c *Client) MarkOffline() bool + type NetworkError struct + Err error + func (n *NetworkError) Error() string + func (n *NetworkError) Unwrap() error