Documentation
¶
Index ¶
Constants ¶
View Source
const ( 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?") ErrInteractionRequired = ExpectedError("Interaction required, run without --queit 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
}
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 ContentMismatch ¶ added in v1.23.0
type ContentMismatch[T any] struct { // contains filtered or unexported fields }
func (ContentMismatch[T]) Error ¶ added in v1.23.0
func (e ContentMismatch[T]) Error() string
type ExpectedError ¶
type ExpectedError string
func (ExpectedError) Error ¶
func (e ExpectedError) Error() string
type Session ¶
type Session struct {
URL string
OutputName string
AcceptRanges string
ContentType string
StatusCode int
ContentLength int64
Elapsed time.Duration
Headers map[string]string
Parts []*Part
Single bool
// 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.
