Files
gopeed/pkg/download/event.go
T
2021-03-26 16:22:53 +08:00

20 lines
319 B
Go

package download
type EventKey string
const (
EventKeyStart = "start"
EventKeyPause = "pause"
EventKeyContinue = "continue"
EventKeyProgress = "progress"
EventKeyError = "error"
EventKeyDone = "done"
EventKeyFinally = "finally"
)
type Event struct {
Key EventKey
Task *TaskInfo
Err error
}