Refactor event loop with types
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
510c9c852b
commit
779cb69e6d
11 changed files with 194 additions and 119 deletions
4
event.go
4
event.go
|
@ -46,3 +46,7 @@ type Event struct {
|
|||
Containers []Container `json:"-"`
|
||||
Err chan error `json:"-"`
|
||||
}
|
||||
|
||||
type Handler interface {
|
||||
Handle(*Event) error
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue