Files
gopeed/download/http/model/chunk.go
T
2020-08-03 18:35:50 +08:00

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,
}
}