Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultChunkSize = 1024 * 1024 * 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkDownFunc ¶
type ChunksSorter ¶
type ChunksSorter struct {
// contains filtered or unexported fields
}
切片乱序写入后,将切片顺序读取
func NewChunksSorter ¶
func NewChunksSorter(chunkCount int64, works int) *ChunksSorter
type MultiPartialDownloader ¶
type MultiPartialDownloader struct {
// contains filtered or unexported fields
}
func NewMultiPartialDownloader ¶
func NewMultiPartialDownloader(filePath string, finalSize, chunkSize int64, writer io.Writer, works int, fn ChunkDownFunc) *MultiPartialDownloader
func (*MultiPartialDownloader) Download ¶
func (p *MultiPartialDownloader) Download() error
Click to show internal directories.
Click to hide internal directories.