dfget

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 12 Imported by: 1

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) DownloadContext added in v1.0.0

func (dfGetter *DFGetter) DownloadContext(ctx context.Context, url string, header map[string][]string, name string) (string, error)

DownloadContext downloads the resources as specified in url.

Jump to

Keyboard shortcuts

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