summaryrefslogtreecommitdiffstats
path: root/lib/apiv1
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-08 10:53:39 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-08 10:53:39 +0100
commit0a5ab2ca1ab89e6e667b7f9c7bdffdff036ca9b7 (patch)
treebdc803f2d02347540d221bb9fc9f8c4b6e748481 /lib/apiv1
parent02aec942b44eecd2ea9b311bb4ba2d60cce21e9a (diff)
Unregistered events when client WS session is closed.
Diffstat (limited to 'lib/apiv1')
-rw-r--r--lib/apiv1/events.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/apiv1/events.go b/lib/apiv1/events.go
index da9a2af..dde2710 100644
--- a/lib/apiv1/events.go
+++ b/lib/apiv1/events.go
@@ -25,6 +25,14 @@ const (
EVTProjectChange = EventTypePrefix + "project-state-change" // data type apiv1.ProjectConfig
)
+// EVTAllList List of all supported events
+var EVTAllList = []string{
+ EVTServerConfig,
+ EVTProjectAdd,
+ EVTProjectDelete,
+ EVTProjectChange,
+}
+
// EventMsg Message send
type EventMsg struct {
Time string `json:"time"`