Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DownloadModel ¶
type DownloadModel struct { Dir string // 下载目录(默认为当前目录) Filepath string // 文件下载地址 UserRecode string // 提取码 UserPassword string // 密码 Csrf string // CSRF 口令 Cookie string // Cookie Token string // 临时认证 Token Items []ItemDownload // 需要下载的文件信息 URL string // 已签名的下载链接 }
下载包结构体
type DownloadRequest ¶
type DownloadRequest struct { Full bool `json:"full"` Items []ItemDownload `json:"items"` }
type DownloadResponse ¶
type DownloadResponse struct {
URL string `json:"url"`
}
type ItemDownload ¶
type MinusDownCountRequest ¶
type ValidationRequest ¶
type ValidationRequest struct {
Password string `json:"password"`
}
type ValidationResponse ¶
type ValidationResponse struct { Token string `json:"token"` Items []ItemDownload `json:"items"` }
type WriteCounter ¶
type WriteCounter struct {
Total uint64
}
func (WriteCounter) PrintProgress ¶
func (wc WriteCounter) PrintProgress()
Click to show internal directories.
Click to hide internal directories.