download

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

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

func New

func New(params ParamsNew) Downloader

func (Downloader) Run

func (dl Downloader) Run(ctx context.Context, params ParamsDownload) (*http.Response, error)

type ParamsDownload

type ParamsDownload struct {
	URL    *url.URL
	Method string
	Header http.Header
}

type ParamsNew

type ParamsNew struct {
	HTTPClient *http.Client
}

Jump to

Keyboard shortcuts

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