Documentation ¶
Overview ¶
* @Author: nijineko * @Date: 2024-04-12 19:58:14 * @LastEditTime: 2024-04-12 22:27:45 * @LastEditors: nijineko * @Description: 下载文件块 * @FilePath: \Miyako\pkg\block\download.go
* @Author: nijineko * @Date: 2024-04-12 17:53:08 * @LastEditTime: 2024-04-12 20:15:01 * @LastEditors: nijineko * @Description: 创建文件块 * @FilePath: \Miyako\pkg\block\generate.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Download ¶
type Download struct { BlockResponse *http.Response CatalogData *catalog.Catalog SavePath string TotalSize int64 }
func NewDownload ¶
*
- @description: 创建一个新的块下载
- @param {string} BlockURL 文件块地址
- @param {*catalog.Catalog} CatalogData Catalog数据
- @param {string} SavePath 保存路径
- @return {*Download} 下载对象
Click to show internal directories.
Click to hide internal directories.