Documentation
¶
Index ¶
Constants ¶
View Source
const MAX_CONCURRENT_DOWNLOADS = 6
Variables ¶
This section is empty.
Functions ¶
func CheckResponse ¶
CheckResponse ensures the status code of an http.Response is successful.
func DownloadFile ¶
func DownloadFile(entry DownloadEntry) error
DownloadFile downloads the specified DownloadEntry and saves it.
All parent directories are created in order to create the file.
func StartDownloadEntries ¶
func StartDownloadEntries(entries []DownloadEntry) chan error
StartDownloadEntries runs DownloadFile on each specified DownloadEntry and returns a channel with the download results.
Types ¶
type DownloadEntry ¶
Click to show internal directories.
Click to hide internal directories.