Move event types constants into single file

Move all constants for event types to types.go for easier code
readability and maintainance.

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
Zhang Wei
2016-04-19 19:02:37 +08:00
parent 63001ee20d
commit e213e2eb62
8 changed files with 20 additions and 8 deletions

View File

@@ -68,7 +68,7 @@ func (w *worker) Start() {
w.s.notifySubscribers(Event{
Timestamp: time.Now(),
ID: t.Container.ID(),
Type: "start-container",
Type: StateStart,
})
}
}