重构fetcher接口

This commit is contained in:
liwei committed 2021-03-03 20:12:51 +08:00
1 parent 871185e7ea
commit bdce3c84a3
12 files changed
+347 -397

No files matched your search

+3 -3
View File
@@ -1,11 +1,11 @@
package model
import (
"github.com/monkeyWie/gopeed-core/download/common"
"github.com/monkeyWie/gopeed-core/download/base"
)
type Chunk struct {
Status common.Status
Status base.Status
Begin int64
End int64
Downloaded int64
@@ -13,7 +13,7 @@ type Chunk struct {
func NewChunk(begin int64, end int64) *Chunk {
return &Chunk{
Status: common.DownloadStatusReady,
Status: base.DownloadStatusReady,
Begin: begin,
End: end,
}