Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheDownloadInstruction ¶ added in v1.4.0
type DownloadedFile ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
Downloader uses go routines to download parts of a file in parallel with a limit of 20 concurrent uploads. It is provided a list of URLs to upload and a channel to receive the results.
func NewDownloader ¶
func NewDownloader(downloadInstructs []CacheDownloadInstruction, limit int) *Downloader
func (*Downloader) Download ¶
func (d *Downloader) Download(ctx context.Context) ([]DownloadedFile, error)
Click to show internal directories.
Click to hide internal directories.