Files
gopeed/download/http/model/chunk.go
T
2020-08-11 22:29:36 +08:00

21 lines
315 B
Go

package model
import (
"github.com/monkeyWie/gopeed/download/common"
)
type Chunk struct {
Status common.Status
Begin int64
End int64
Downloaded int64
}
func NewChunk(begin int64, end int64) *Chunk {
return &Chunk{
Status: common.DownloadStatusReady,
Begin: begin,
End: end,
}
}