mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
20 lines
313 B
Go
20 lines
313 B
Go
package download
|
|
|
|
type EventKey string
|
|
|
|
const (
|
|
EventKeyStart = "start"
|
|
EventKeyPause = "pause"
|
|
EventKeyProgress = "progress"
|
|
EventKeyError = "error"
|
|
EventKeyDelete = "delete"
|
|
EventKeyDone = "done"
|
|
EventKeyFinally = "finally"
|
|
)
|
|
|
|
type Event struct {
|
|
Key EventKey
|
|
Task *Task
|
|
Err error
|
|
}
|