Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct { Path string Silent bool // 0 is no concurrency // positive is max number of concurrent download // negative is no limit to concurrent download MaxConcurrency int NoConflict bool RefreshRate time.Duration }
func New ¶
func New(opts ...Option) Downloader
func (Downloader) Download ¶
func (dwnlder Downloader) Download(urls ...string) []Info
type Option ¶
type Option func(*Downloader)
func NewWithDefaultPath ¶
func NewWithMaxConcurrency ¶
func NewWithNoConflict ¶
func NewWithNoConflict() Option
func NewWithRefreshRate ¶
func NewWithSilentOutput ¶
func NewWithSilentOutput() Option
Click to show internal directories.
Click to hide internal directories.