Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrCanceledByUser = ExpectedError("Canceled by user") ErrMaxRedirects = ExpectedError("Max redirects reached") ErrMaxRetry = ExpectedError("Max retry reached") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type ExpectedError ¶
type ExpectedError string
func (ExpectedError) Error ¶
func (e ExpectedError) Error() string
type Options ¶
type Options struct { Parts uint `short:"p" long:"parts" value-name:"n" default:"1" description:"number of parts"` MaxRetry uint `short:"r" long:"max-retry" value-name:"n" default:"10" description:"max retry per each part, 0 for infinite"` Timeout uint `short:"t" long:"timeout" value-name:"sec" default:"15" description:"context timeout"` OutFileName string `short:"o" long:"output" value-name:"filename" description:"user defined output"` JSONFileName string `short:"c" long:"continue" value-name:"state.json" description:"resume download from the last session"` UserAgent string `` /* 157-byte string literal not displayed */ BestMirror bool `short:"b" long:"best-mirror" description:"pickup the fastest mirror"` Quiet bool `short:"q" long:"quiet" description:"quiet mode, no progress bars"` ForceOverwrite bool `short:"f" long:"force" description:"overwrite existing file silently"` AuthUser string `short:"u" long:"username" description:"basic http auth username"` AuthPass string `long:"password" description:"basic http auth password"` HeaderMap map[string]string `short:"H" long:"header" value-name:"key:value" description:"arbitrary http header"` InsecureSkipVerify bool `long:"no-check-cert" description:"don't validate the server's certificate"` CertsFileName string `long:"certs-file" value-name:"certs.crt" description:"root certificates to use when verifying server certificates"` Debug bool `long:"debug" description:"enable debug to stderr"` Version bool `long:"version" description:"show version"` }
Options struct, represents cmd line options
Click to show internal directories.
Click to hide internal directories.