ngin

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.1.8

type Client struct {
	// contains filtered or unexported fields
}

Client .

func NewClient added in v0.1.8

func NewClient(c *ClientConfig) *Client

NewClient .

func (*Client) Do added in v0.1.8

func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (res *http.Response, err error)

Do .

func (*Client) Get added in v0.1.8

func (c *Client) Get(ctx context.Context, url string, params url.Values, v interface{}) (*http.Response, error)

Get GET request to the URL

func (*Client) NewRequest added in v0.1.8

func (c *Client) NewRequest(method, url string, body interface{}) (r *http.Request, err error)

NewRequest .

func (*Client) Post added in v0.1.8

func (c *Client) Post(ctx context.Context, url string, params url.Values, v interface{}) (*http.Response, error)

Post POST request to the URL

type ClientConfig added in v0.1.10

type ClientConfig struct {
	UserAgent string `toml:"user_agent"`
}

ClientConfig .

type ServerConfig

type ServerConfig struct {
	Host string `toml:"host"`
	Port int    `toml:"port"`
}

ServerConfig .

Jump to

Keyboard shortcuts

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