Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Download ¶
type Download struct {
// contains filtered or unexported fields
}
Download can download a file from the network.
func New ¶
func New(url, dir string, hostnameVerification utils.SSLHostnameVerification) *Download
New returns a new Download instance downloading from the given URL to the given directory. If dir is empty, it defaults to os.TempDir(). If disableSSLHostnameVerification is true then a non- validating http client will be used.
func (*Download) Done ¶
Done returns a channel that receives a status when the download has completed. It is the receiver's responsibility to close and remove the received file.
Source Files
¶
- downloader.go
Click to show internal directories.
Click to hide internal directories.