model

package
v2.2.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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()

type FileInfo

type FileInfo struct {
	Size     int64    `json:"Size"`
	FileName string   `json:"FileName"`
	Url      string   `json:"Url"`
	Pipes    []string `json:"Pipes"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL