mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-08 01:20:27 +00:00
21 lines
314 B
Go
21 lines
314 B
Go
package model
|
|
|
|
import (
|
|
"github.com/monkeyWie/gopeed-core/download/base"
|
|
)
|
|
|
|
type Chunk struct {
|
|
Status base.Status
|
|
Begin int64
|
|
End int64
|
|
Downloaded int64
|
|
}
|
|
|
|
func NewChunk(begin int64, end int64) *Chunk {
|
|
return &Chunk{
|
|
Status: base.DownloadStatusReady,
|
|
Begin: begin,
|
|
End: end,
|
|
}
|
|
}
|