Add event id to router events

This commit is contained in:
Asim Aslam
2020-01-23 11:44:06 +00:00
parent 1c19678d04
commit 77c2a021da
6 changed files with 68 additions and 48 deletions

View File

@@ -39,6 +39,8 @@ func (t EventType) String() string {
// Event is returned by a call to Next on the watcher.
type Event struct {
// Unique id of the event
Id string
// Type defines type of event
Type EventType
// Timestamp is event timestamp