mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
25 lines
382 B
Go
25 lines
382 B
Go
package http
|
|
|
|
import "github.com/monkeyWie/gopeed-core/pkg/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,
|
|
}
|
|
}
|
|
|
|
type Extra struct {
|
|
Method string
|
|
Header map[string]string
|
|
Body string
|
|
}
|