Versions in this module Expand all Collapse all v0 v0.4.1 Dec 21, 2016 Changes in this version + const ChromeUserAgent + const IE11UserAgent + const SafariUserAgent + func NewGetRequestUA(url, userAgent string) *http.Request + func NewPostFormRequestUA(url, userAgent string, data url.Values) *http.Request type BoolOption + Hidden bool + func (opt *BoolOption) IsHidden() bool type FloatOption + Hidden bool + func (opt *FloatOption) IsHidden() bool + type ForceDisableOption struct + func NewForceDisableOption(comment string) *ForceDisableOption + func (opt *ForceDisableOption) IsHidden() bool + func (opt *ForceDisableOption) IsRequired() bool + func (opt *ForceDisableOption) Key() string + type ForceMaxWorkersOption struct + func NewForceMaxWorkersOption(workers int) *ForceMaxWorkersOption + func (opt *ForceMaxWorkersOption) Comment() string + func (opt *ForceMaxWorkersOption) IsHidden() bool + func (opt *ForceMaxWorkersOption) IsRequired() bool + func (opt *ForceMaxWorkersOption) Key() string + type ForceZipOption struct + func NewForceZipOption(force bool) *ForceZipOption + func (opt *ForceZipOption) Comment() string + func (opt *ForceZipOption) IsHidden() bool + func (opt *ForceZipOption) IsRequired() bool + func (opt *ForceZipOption) Key() string type IntOption + Hidden bool + func (opt *IntOption) IsHidden() bool type Option + IsHidden func() bool type Plugin + Cleanup func(error) type StringOption + Hidden bool + func (opt *StringOption) IsHidden() bool v0.3.3 Nov 30, 2016 v0.3.2 Nov 29, 2016 v0.3.1 Nov 29, 2016 v0.2.1 Nov 28, 2016 Changes in this version + const FirefoxUserAgent + const UnknownTotal + func NewGetRequest(url string) *http.Request + func NewHTTPClient(timeout int) *http.Client + func NewPostFormRequest(url string, data url.Values) *http.Request + func OptionsToMap(opts []Option) map[string]interface + func PanicForStatus(resp *http.Response, msg string) + type BoolOption struct + C string + K string + Required bool + V bool + func (opt *BoolOption) Comment() string + func (opt *BoolOption) IsRequired() bool + func (opt *BoolOption) Key() string + func (opt *BoolOption) Set(v string) (err error) + func (opt *BoolOption) Value() interface{} + type Downloader func(int, Reporter) error + type ErrHTTPStatusCode struct + StatusCode int + func (e *ErrHTTPStatusCode) String() string + type FloatOption struct + C string + K string + Required bool + V float64 + func (opt *FloatOption) Comment() string + func (opt *FloatOption) IsRequired() bool + func (opt *FloatOption) Key() string + func (opt *FloatOption) Set(v string) (err error) + func (opt *FloatOption) Value() interface{} + type IntOption struct + C string + K string + Required bool + V int + func (opt *IntOption) Comment() string + func (opt *IntOption) IsRequired() bool + func (opt *IntOption) Key() string + func (opt *IntOption) Set(v string) (err error) + func (opt *IntOption) Value() interface{} + type Option interface + Comment func() string + IsRequired func() bool + Key func() string + Set func(string) error + Value func() interface{} + type Plugin interface + CanHandle func(url string) bool + DownloadGenerator func(url string) (dlgen func() Downloader, dls int) + Name func() string + Options func() []Option + Version func() string + type Reporter interface + Copy func(dst io.Writer, src io.Reader) (written int64, err error) + FileWriter func(dst string, report bool) (io.WriteCloser, error) + SaveData func(dst string, src io.Reader, report bool) (written int64, err error) + SaveFile func(dst, src string) (size int64, err error) + TempFile func() (*os.File, error) + type StringOption struct + C string + K string + Required bool + V string + func (opt *StringOption) Comment() string + func (opt *StringOption) IsRequired() bool + func (opt *StringOption) Key() string + func (opt *StringOption) Set(v string) error + func (opt *StringOption) Value() interface{}