mirror of
https://github.com/samuelncui/acp.git
synced 2026-09-03 14:47:17 +00:00
45 lines
737 B
Go
45 lines
737 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() {}
|
|
|
|
// EventSignatureCacheSummary reports aggregate cache behavior for one Copyer.
|
|
type EventSignatureCacheSummary struct {
|
|
Summary SignatureCacheSummary
|
|
}
|
|
|
|
func (*EventSignatureCacheSummary) iEvent() {}
|
|
|
|
type EventFinished struct{}
|
|
|
|
func (*EventFinished) iEvent() {}
|