client

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: BSD-3-Clause Imports: 14 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 client connecting to the server

func NewClient

func NewClient() *Client

NewClient init client

func NewCustomClient

func NewCustomClient(cli *http.Client) *Client

NewCustomClient init client

func (*Client) Call

func (v *Client) Call(method, url string, ver uint64, in json.Marshaler, out json.Unmarshaler) (int, 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) WithHeaders

func (v *Client) WithHeaders(heads web.Headers)

Debug enable logging of responses

func (*Client) WithSign added in v1.2.1

func (v *Client) WithSign(id, secret string)

WithSign sign request

Jump to

Keyboard shortcuts

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