Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadQueue ¶
type DownloadQueue struct {
// contains filtered or unexported fields
}
DownloadQueue is used to limit download process
func NewQueue ¶
func NewQueue(maxCount int) *DownloadQueue
NewQueue creates a new instance of DownloadQueue
func (*DownloadQueue) AddMultiple ¶
func (dq *DownloadQueue) AddMultiple(url, md5sum string, limit, size int) (string, error)
AddMultiple gets the file from URL in multiple threads
Click to show internal directories.
Click to hide internal directories.