better error logging

This commit is contained in:
2024-04-22 10:03:16 +02:00
parent a73b8d362e
commit 3da81affb3
5 changed files with 83 additions and 42 deletions

View File

@@ -2,6 +2,19 @@ package internal
import "time"
type ProgressTemplate struct {
Percentage string `json:"percentage"`
Speed float32 `json:"speed"`
Size string `json:"size"`
Eta float32 `json:"eta"`
}
type DownloadOutput struct {
Path string
Filename string
SavedFilePath string `json:"savedFilePath"`
}
// Progress for the Running call
type DownloadProgress struct {
Status int `json:"process_status"`