downloader

package
v0.0.0-...-84e757a Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDownloader

type FileDownloader struct {
	// contains filtered or unexported fields
}

func NewFileDownloader

func NewFileDownloader(saveDir string) *FileDownloader

func (*FileDownloader) Download

func (d *FileDownloader) Download(url string) (string, int64, error)

func (*FileDownloader) DownloadAs

func (d *FileDownloader) DownloadAs(url string, outputFileName string) (string, int64, error)

func (*FileDownloader) SaveDirectory

func (d *FileDownloader) SaveDirectory() string

func (*FileDownloader) SetHeader

func (d *FileDownloader) SetHeader(h http.Header)

Jump to

Keyboard shortcuts

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