mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-05 16:15:43 +00:00
31 lines
545 B
Go
31 lines
545 B
Go
package base
|
|
|
|
import "errors"
|
|
|
|
type Status int
|
|
|
|
const (
|
|
DownloadStatusPrepare Status = iota
|
|
DownloadStatusReady
|
|
DownloadStatusStart
|
|
DownloadStatusPause
|
|
DownloadStatusError
|
|
DownloadStatusDone
|
|
)
|
|
|
|
const (
|
|
HttpCodeOK = 200
|
|
HttpCodePartialContent = 206
|
|
|
|
HttpHeaderRange = "Range"
|
|
HttpHeaderContentLength = "Content-Length"
|
|
HttpHeaderContentRange = "Content-Range"
|
|
HttpHeaderContentDisposition = "Content-Disposition"
|
|
|
|
HttpHeaderRangeFormat = "bytes=%d-%d"
|
|
)
|
|
|
|
var (
|
|
DeleteErr = errors.New("delete")
|
|
)
|