Documentation ¶
Index ¶
Constants ¶
View Source
const ( HttpCodeOK = 200 HttpCodePartialContent = 206 HttpHeaderRange = "Range" HttpHeaderContentLength = "Content-Length" HttpHeaderContentRange = "Content-Range" HttpHeaderContentDisposition = "Content-Disposition" HttpHeaderRangeFormat = "bytes=%d-%d" )
Variables ¶
View Source
var ( NotFound = errors.New("not found") BadParams = errors.New("bad params") )
Functions ¶
func ParseOptsExtra ¶
func ParseReqExtra ¶
Types ¶
type Options ¶
type Options struct { // Download file name Name string `json:"name"` // Download file path Path string `json:"path"` // Select file indexes to download SelectFiles []int `json:"selectFiles"` // Extra info for specific fetcher Extra any `json:"extra"` }
Options for download
Click to show internal directories.
Click to hide internal directories.