Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mover ¶
type Mover struct { FileMete fileMete.Data // 文件元数据 MoveDir string // 目标目录 CurrentDir string // 文件所在目录 RetryChannel chan int // 重传channel通道 MaxGtChannel chan struct{} // 限制上传的goroutine的数量通道 StartTime time.Time // 移动开始时间 EndTime time.Time // 移动结束时间 RetrySlice []int // 需要重传分片编号 // contains filtered or unexported fields }
Mover 文件移动结构体
func (*Mover) DownloadFile ¶
DownloadFile 从指定URL下载文件至本地路径
func (*Mover) GetMovePath ¶
func (*Mover) SliceDownload ¶
type OpFunc ¶
type OpFunc func(*Mover)
func WithCurrentDir ¶
func WithMaxGtChannelSum ¶
func WithMovePath ¶
func WithRetryChannelSum ¶
Click to show internal directories.
Click to hide internal directories.