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:
parent
63001ee20d
commit
e213e2eb62
8 changed files with 20 additions and 8 deletions
|
@ -161,7 +161,7 @@ func (s *Supervisor) Events(from time.Time) chan Event {
|
|||
}
|
||||
// Notify the client that from now on it's live events
|
||||
c <- Event{
|
||||
Type: "live",
|
||||
Type: StateLive,
|
||||
Timestamp: time.Now(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue