Documentation
¶
Index ¶
- Constants
- Variables
- type Any
- type Conn
- type HttpClient
- func (client *HttpClient) Do(meta task.Meta, req *http.Request) (*http.Response, error)
- func (client *HttpClient) Get(meta task.Meta, url string) (*http.Response, error)
- func (client *HttpClient) Info() string
- func (client *HttpClient) NRead() int
- func (client *HttpClient) NWrite() int
- func (client *HttpClient) Release()
- type Pool
Constants ¶
View Source
const ( CONN_ERR = "conn err" CONN_ADD = "conn add" CONN_GET = "conn get" CONN_PUT = "conn put" CONN_END = "conn end" )
View Source
const CONN = "conn"
View Source
const HTTP = "http"
View Source
const POOL = "pool"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Any ¶ added in v0.6.4
type Any = interface{}
type Conn ¶
type HttpClient ¶
type HttpClient struct { *http.Client DoCount int GetCount int PostCount int ErrCount int Logger func(...Any) // contains filtered or unexported fields }
func (*HttpClient) Do ¶
func (*HttpClient) Get ¶
func (*HttpClient) Info ¶
func (client *HttpClient) Info() string
func (*HttpClient) NRead ¶
func (client *HttpClient) NRead() int
func (*HttpClient) NWrite ¶
func (client *HttpClient) NWrite() int
func (*HttpClient) Release ¶ added in v0.6.4
func (client *HttpClient) Release()
Click to show internal directories.
Click to hide internal directories.