aboutsummaryrefslogtreecommitdiffstats
path: root/lib/apiv1
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-08 10:19:54 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-08 10:19:54 +0100
commit02aec942b44eecd2ea9b311bb4ba2d60cce21e9a (patch)
treed5243e01ffaba8f23c86c9660eb1f7c0765d4dd8 /lib/apiv1
parentd96e5b59d352f1c9eaf73a13d5c4bc25c6a4ebc4 (diff)
Fixed events definition and callback processing.
Diffstat (limited to 'lib/apiv1')
-rw-r--r--lib/apiv1/events.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/apiv1/events.go b/lib/apiv1/events.go
index 8bad394..da9a2af 100644
--- a/lib/apiv1/events.go
+++ b/lib/apiv1/events.go
@@ -18,11 +18,11 @@ const (
EventTypePrefix = "event:" // following by event type
// Supported Events type
- EVTAll = "all"
- EVTServerConfig = "server-config" // data type apiv1.ServerCfg
- EVTProjectAdd = "project-add" // data type apiv1.ProjectConfig
- EVTProjectDelete = "project-delete" // data type apiv1.ProjectConfig
- EVTProjectChange = "project-state-change" // data type apiv1.ProjectConfig
+ EVTAll = EventTypePrefix + "all"
+ EVTServerConfig = EventTypePrefix + "server-config" // data type apiv1.ServerCfg
+ EVTProjectAdd = EventTypePrefix + "project-add" // data type apiv1.ProjectConfig
+ EVTProjectDelete = EventTypePrefix + "project-delete" // data type apiv1.ProjectConfig
+ EVTProjectChange = EventTypePrefix + "project-state-change" // data type apiv1.ProjectConfig
)
// EventMsg Message send