Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader interface { // Download downloads file specified by location // and return downloaded file path Download(rawUrl string) (string, error) // DownloadStream downloads file specified by location // and return io.ReadCloser as stream DownloadStream(rawUrl string) (io.ReadCloser, error) }
Downloader is an interface for downloading files
func NewBasicDownloader ¶
func NewBasicDownloader(protocol string) Downloader
Click to show internal directories.
Click to hide internal directories.