downloader

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 5 Imported by: 2

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL