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

+5
View File
@@ -218,6 +218,11 @@ func (f *Fetcher) Meta() *fetcher.FetcherMeta {
return f.meta
}
func (f *Fetcher) Stats() any {
// todo http download health
return &fhttp.Stats{}
}
func (f *Fetcher) Progress() fetcher.Progress {
p := make(fetcher.Progress, 0)
if len(f.chunks) > 0 {