mirror of
https://github.com/samuelncui/acp.git
synced 2025-12-23 05:05:15 +00:00
38 lines
535 B
Go
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() {}
|