client

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 6 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 is http client.

func NewClient

func NewClient(client *bm.Client) *Client

NewClient new a http client.

func (*Client) Get

func (client *Client) Get(c context.Context, uri string, params interface{}, res interface{}) (err error)

Get a json req http get.

func (*Client) NewRequest

func (client *Client) NewRequest(method, uri string, params interface{}) (req *xhttp.Request, err error)

NewRequest new http request with method, uri, ip, values and headers.

func (*Client) Post

func (client *Client) Post(c context.Context, uri string, params interface{}, res interface{}) (err error)

Post a json req http post.

Jump to

Keyboard shortcuts

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