Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = &Options{}
DefaultOptions default
View Source
var DefaultUserAgent = "Bulk/2.0"
DefaultUserAgent user-agent
View Source
var (
ErrProxyNotConfigured = errors.New("Proxy is not configured correctly")
)
error
Functions ¶
func FileHashEqual ¶
func FileHashEqual(fullname string, eu *DownloadEntity) bool
FileHashEqual file exists
func StripExtension ¶
StripExtension stripExtension
Types ¶
type DownloadEntity ¶
type DownloadEntity struct { URL string Destination string HashValue string Algorithm string OverwriteExisting bool }
DownloadEntity metadata
type Executor ¶
type Executor struct { DestinationPath string UserAgent string // contains filtered or unexported fields }
Executor download executor
func (*Executor) ResolveFileName ¶
ResolveFileName resolve filename from response and rawurl
func (*Executor) ResolvePath ¶
ResolvePath todo
type Options ¶
type Options struct { InsecureSkipVerify bool DisableAutoProxy bool DestinationPath string ProxyURL string UserAgent string }
Options todo
type ProxySettings ¶
type ProxySettings struct { ProxyServer string ProxyOverride string // aka no proxy // contains filtered or unexported fields }
ProxySettings todo
Click to show internal directories.
Click to hide internal directories.