mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-15 04:43:41 +00:00
21 lines
325 B
Go
21 lines
325 B
Go
package model
|
|
|
|
import (
|
|
common2 "github.com/monkeyWie/gopeed/download/common"
|
|
)
|
|
|
|
type Chunk struct {
|
|
Status common2.Status
|
|
Begin int64
|
|
End int64
|
|
Downloaded int64
|
|
}
|
|
|
|
func NewChunk(begin int64, end int64) *Chunk {
|
|
return &Chunk{
|
|
Status: common2.DownloadStatusReady,
|
|
Begin: begin,
|
|
End: end,
|
|
}
|
|
}
|