2021-10-25 07:49:48 +02:00
|
|
|
package task
|
|
|
|
|
|
|
|
const (
|
|
|
|
StatusDownloading = iota + 1
|
|
|
|
StatusCompleted
|
|
|
|
StatusError
|
|
|
|
)
|
|
|
|
|
|
|
|
type Tasks map[string]*Task
|
|
|
|
|
|
|
|
type Task struct {
|
2022-02-17 13:56:47 +01:00
|
|
|
ID string
|
|
|
|
Status int
|
|
|
|
Percentage float64
|
|
|
|
Filename string
|
2021-10-25 07:49:48 +02:00
|
|
|
}
|