feat(offline_download): add simple http tool (close #4002)

This commit is contained in:
Andy Hsu
2023-11-24 16:26:05 +08:00
parent b6134dc515
commit 34746e951c
8 changed files with 131 additions and 0 deletions

View File

@ -35,6 +35,9 @@ type Tool interface {
Remove(task *DownloadTask) error
// Status return the status of the download task, if an error occurred, return the error in Status.Err
Status(task *DownloadTask) (*Status, error)
// Run for simple http download
Run(task *DownloadTask) error
}
type GetFileser interface {