Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrBadInvariant = ExpectedError("Bad invariant") ErrCanceledByUser = ExpectedError("Canceled by user") ErrMaxRedirect = ExpectedError("Max redirections") ErrMaxRetry = ExpectedError("Max retries") ErrZeroParts = ExpectedError("No parts no work") ErrTooFragmented = ExpectedError("Too fragmented, reduce number of parts maybe?") )
View Source
const ( DBUG = iota INFO WARN ERRO )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadProxyURL ¶ added in v1.25.0
type BadProxyURL struct {
// contains filtered or unexported fields
}
func (BadProxyURL) Error ¶ added in v1.25.0
func (e BadProxyURL) Error() string
func (BadProxyURL) Unwrap ¶ added in v1.25.0
func (e BadProxyURL) Unwrap() error
type Cmd ¶
type ContentMismatch ¶ added in v1.23.0
type ContentMismatch struct {
// contains filtered or unexported fields
}
func (ContentMismatch) Error ¶ added in v1.23.0
func (e ContentMismatch) Error() string
type ExpectedError ¶
type ExpectedError string
func (ExpectedError) Error ¶
func (e ExpectedError) Error() string
type Session ¶
type Session struct {
URL string
OutputName string
ContentMD5 string
AcceptRanges string
ContentType string
StatusCode int
ContentLength int64
Redirected bool
Single bool
Elapsed time.Duration
HeaderMap map[string]string
Parts []*Part
// contains filtered or unexported fields
}
Session represents download session state
type UnexpectedHttpStatus ¶ added in v1.23.0
type UnexpectedHttpStatus int
func (UnexpectedHttpStatus) Error ¶ added in v1.23.0
func (e UnexpectedHttpStatus) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.
