Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_CONNECTION_TIMEOUT = 1000 DEFAULT_RW_TIMEOUT = 3000 )
Variables ¶
View Source
var ( CONNECTION_TIMEOUT = DEFAULT_CONNECTION_TIMEOUT * time.Millisecond RW_TIMEOUT = DEFAULT_RW_TIMEOUT * time.Millisecond )
View Source
var HttpClient = httpclient.NewClientWithTimeout(CONNECTION_TIMEOUT, RW_TIMEOUT)
Functions ¶
Types ¶
type HttpFetcher ¶
type HttpFetcher struct {
// contains filtered or unexported fields
}
func (*HttpFetcher) Fetch ¶
func (t *HttpFetcher) Fetch(task *tasks.FetcherTask) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.