mirror of https://github.com/Xhofe/alist
chore: `task` and `message` package
parent
e4b956b091
commit
1143331b4d
|
@ -1 +0,0 @@
|
||||||
package cache
|
|
|
@ -0,0 +1 @@
|
||||||
|
package message
|
|
@ -1 +1,12 @@
|
||||||
|
// manage task, such as file upload, file copy between accounts, offline download, etc.
|
||||||
package task
|
package task
|
||||||
|
|
||||||
|
import "context"
|
||||||
|
|
||||||
|
type Task struct {
|
||||||
|
Name string
|
||||||
|
Func func(context.Context) error
|
||||||
|
Status string
|
||||||
|
Error error
|
||||||
|
Progress int
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue