dfget

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DFGetter

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

DFGetter implements Downloader to download file by dragonfly

func NewGetter added in v0.4.0

func NewGetter(cfg config.DFGetConfig) *DFGetter

NewGetter returns a dfget downloader from the given config

func (*DFGetter) Download

func (dfGetter *DFGetter) Download(url string, header map[string][]string, name string) (string, error)

Download is the method of DFGetter to download by dragonfly.

Jump to

Keyboard shortcuts

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