feat: add download stats info (#323)

This commit is contained in:
Tracey Lesley authored and GitHub committed 2024-01-17 21:59:01 +08:00
1 parent cc0f61b527
commit 99f4e8c895
5 files changed
+33

No files matched your search

+2
View File
@@ -21,6 +21,8 @@ type Fetcher interface {
Pause() error
Close() error
// Stats refreshes health statistics and returns the latest information
Stats() any
// Meta returns the meta information of the download.
Meta() *FetcherMeta
// Progress returns the progress of the download.