Files
gopeed/pkg/download/event.go
T

20 lines
315 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 *Task
Err error
}