Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetHTTPClient ¶
SetHTTPClient overrides the default HTTP client.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents http.Client with paralleldl options.
type Options ¶
type Options struct { // Output directory Output string // http.Client's Timeout. // A Timeout of zero means no timeout. Timeout time.Duration // Maximum number of concurrent requests. // A MaxConcurrents of zero means no limit of number of requests. MaxConcurrents int64 // Maximum number of errors before giving up the whole requests. // A MaxErrorRequests of zero means try until all requests are done. MaxErrorRequests int64 // Maximum number of retries before giving up a request. // A MaxAttempts of zero means try until a request is success. MaxAttempts int64 }
Options represents Client's parameters.
Click to show internal directories.
Click to hide internal directories.