chore: `task` and `message` package

refactor/fs
Noah Hsu 2022-06-14 17:19:43 +08:00
parent e4b956b091
commit 1143331b4d
3 changed files with 12 additions and 1 deletions

View File

@ -1 +0,0 @@
package cache

View File

@ -0,0 +1 @@
package message

View File

@ -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
}