Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadProgress ¶
type DownloadProgress struct {
From int64 // 分片起始字节位置
To int64 // 分片终止字节位置
Pos int64 // 已下载占整个文件的位置 From<=Pos<=To
BytesInSecond int64
Speed int64
Lsmt time.Time
IsPartial bool // 是否分片下载
}
func (DownloadProgress) IsCompleted ¶
func (dp DownloadProgress) IsCompleted() bool
func (*DownloadProgress) ResetProgress ¶
func (dp *DownloadProgress) ResetProgress()
Click to show internal directories.
Click to hide internal directories.