Refactor event loop with types

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2015-12-01 10:55:13 -08:00
parent 510c9c852b
commit 779cb69e6d
11 changed files with 194 additions and 119 deletions

View file

@ -46,3 +46,7 @@ type Event struct {
Containers []Container `json:"-"`
Err chan error `json:"-"`
}
type Handler interface {
Handle(*Event) error
}