Versions in this module Expand all Collapse all v1 v1.0.0 Apr 9, 2017 Changes in this version + var DefaultClient = NewClient() + func GetAsync(dst, src string) (<-chan *Response, error) + func GetBatch(workers int, dst string, sources ...string) (<-chan *Response, error) + func IsBadDestination(err error) bool + func IsChecksumMismatch(err error) bool + func IsContentLengthMismatch(err error) bool + func IsNoFilename(err error) bool + type Client struct + HTTPClient *http.Client + UserAgent string + func NewClient() *Client + func (c *Client) CancelRequest(req *Request) + func (c *Client) Do(req *Request) (*Response, error) + func (c *Client) DoAsync(req *Request) <-chan *Response + func (c *Client) DoBatch(workers int, reqs ...*Request) <-chan *Response + func (c *Client) DoChannel(workers int, reqs <-chan *Request) <-chan *Response + type Request struct + BufferSize uint + Checksum []byte + CreateMissing bool + Filename string + HTTPRequest *http.Request + Hash hash.Hash + Label string + NotifyOnClose chan<- *Response + RemoveOnError bool + Size uint64 + SkipExisting bool + Tag interface{} + func NewRequest(urlStr string) (*Request, error) + func (c *Request) SetChecksum(algorithm string, checksum []byte) error + func (c *Request) URL() *url.URL + type Response struct + DidResume bool + End time.Time + Error error + Filename string + HTTPResponse *http.Response + Request *Request + Size uint64 + Start time.Time + func Get(dst, src string) (*Response, error) + func (c *Response) AverageBytesPerSecond() float64 + func (c *Response) BytesTransferred() uint64 + func (c *Response) Duration() time.Duration + func (c *Response) ETA() time.Time + func (c *Response) IsComplete() bool + func (c *Response) Progress() float64 Incompatible versions in this module v2.0.0+incompatible Nov 8, 2018