Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrCanceledByUser = ExpectedError("Canceled by user") ErrMaxRetry = ExpectedError("Retry limit exceeded") ErrMaxRedirect = ExpectedError("Follow limit exceeded") ErrZeroParts = ExpectedError("Need at least one part to continue") ErrTooFragmented = ExpectedError("Too fragmented, reduce number of parts maybe?") ErrInteractionRequired = ExpectedError("Interaction required, run without --queit maybe?") ErrMirrorStop = ExpectedError("More than one mirror requested, stop processing") ErrMirrorNone = ExpectedError("None of the mirror responded with valid result") )
View Source
const ( DBUG = iota INFO WARN ERRO )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
Ctx context.Context
Out io.Writer
Err io.Writer
// contains filtered or unexported fields
}
Cmd type used to manage download session
type ContentMismatchError ¶ added in v1.26.2
type ContentMismatchError[T any] struct { // contains filtered or unexported fields }
func (ContentMismatchError[T]) Error ¶ added in v1.26.2
func (e ContentMismatchError[T]) Error() string
type ExpectedError ¶
type ExpectedError string
func (ExpectedError) Error ¶
func (e ExpectedError) Error() string
type Part ¶
type Part struct {
Id uint
Start int64
Stop int64
Written int64
// contains filtered or unexported fields
}
Part represents state of each download part
type Session ¶
type Session struct {
URL string
OutputName string
AcceptRanges string
ContentType string
ContentLength int64
Elapsed time.Duration
Headers map[string]string
Parts []*Part
ExplicitOutput bool
// contains filtered or unexported fields
}
Session represents download session state
type UnexpectedHttpStatusError ¶ added in v1.26.2
type UnexpectedHttpStatusError int
func (UnexpectedHttpStatusError) Error ¶ added in v1.26.2
func (e UnexpectedHttpStatusError) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.
