chore: task
and message
package
This commit is contained in:
parent
e4b956b091
commit
1143331b4d
1
internal/cache/cache.go
vendored
1
internal/cache/cache.go
vendored
@ -1 +0,0 @@
|
|||||||
package cache
|
|
1
internal/message/message.go
Normal file
1
internal/message/message.go
Normal file
@ -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…
x
Reference in New Issue
Block a user