Documentation ¶
Overview ¶
Package upload 实现网盘文件上传
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Upload ¶
type Upload struct { api.Sdker SliceSize int64 //分片大小,只能是4MB,16MB,32MB BlockList []string //文件各分片MD5数组的json串。 UR *request.UploadReq //上传请求参数 UPR *response.UploadPrecreateResp //预上传返回参数 USFR []*response.UploadSuperFileResp //切片上传返回参数 UCFR *response.UploadCreateFileResp //创建网盘文件返回参数 SFIS []*request.SliceFileInfo //分割文件后的信息 Err error // contains filtered or unexported fields }
func NewUploadImpl ¶
Notes ¶
Bugs ¶
目前协程并未生效,因为整个方法都被锁住了,待后续修改
目前协程并未生效,因为整个方法都被锁住了,待后续修改
Click to show internal directories.
Click to hide internal directories.