Skip to content

Commit

Permalink
chore: task and message package
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jun 14, 2022
1 parent e4b956b commit 1143331
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/cache/cache.go

This file was deleted.

1 change: 1 addition & 0 deletions internal/message/message.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package message
11 changes: 11 additions & 0 deletions internal/task/task.go
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
// manage task, such as file upload, file copy between accounts, offline download, etc.
package task

import "context"

type Task struct {
Name string
Func func(context.Context) error
Status string
Error error
Progress int
}

0 comments on commit 1143331

Please sign in to comment.