Files
gopeed/pkg/download/event.go
T
2022-10-26 17:18:13 +08:00

21 lines
344 B
Go

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