Files
acp/event.go
2022-12-07 19:50:48 +08:00

38 lines
535 B
Go

package acp
type EventHandler func(Event)
type Event interface {
iEvent()
}
type EventUpdateCount struct {
Bytes, Files int64
Finished bool
}
func (*EventUpdateCount) iEvent() {}
type EventUpdateProgress struct {
Bytes, Files int64
Finished bool
}
func (*EventUpdateProgress) iEvent() {}
type EventUpdateJob struct {
Job *Job
}
func (*EventUpdateJob) iEvent() {}
type EventReportError struct {
Error *Error
}
func (*EventReportError) iEvent() {}
type EventFinished struct{}
func (*EventFinished) iEvent() {}