client

package
v5.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequestForGet

func NewRequestForGet(url string, ip string, extHeaders map[string]string) (*http.Request, error)

Types

type Client

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

func NewClient

func NewClient(logger golog.ILogger) *Client

func (*Client) Do

func (this *Client) Do(req *http.Request, retry int) (*Response, error)

func (*Client) SetMaxIdleConnsPerHost

func (this *Client) SetMaxIdleConnsPerHost(value int) *Client

func (*Client) SetTimeout

func (this *Client) SetTimeout(timeout time.Duration) *Client

type Response

type Response struct {
	T        time.Duration
	Contents []byte

	*http.Response
}

Jump to

Keyboard shortcuts

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