client

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

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 ...

func New added in v1.3.0

func New() *Client

NewClient ...

func NewCustom added in v1.3.0

func NewCustom(cli *http.Client) *Client

NewCustomClient ...

func (*Client) Call

func (v *Client) Call(pool utils.Pooler, method, uri string, body []byte) (int, []byte, error)

Call make request to server

func (*Client) Debug

func (v *Client) Debug(is bool, w io.Writer)

Debug enable logging of responses

func (*Client) WithAuth added in v1.3.0

func (v *Client) WithAuth(s utils.Signer)

WithAuth sitting auth

func (*Client) WithHeaders

func (v *Client) WithHeaders(heads http.Header)

WithHeaders setting headers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL