From 21c8e4530802c87de70de8c1aeb77e4357cae18b Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 11 May 2017 16:46:11 +0900 Subject: [PATCH] add event const --- observer/messages/config_manager.go | 14 +++++++++++--- observer/messages/crawler_manager.go | 12 ++++++------ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/observer/messages/config_manager.go b/observer/messages/config_manager.go index 82641b5..009f664 100644 --- a/observer/messages/config_manager.go +++ b/observer/messages/config_manager.go @@ -1,7 +1,15 @@ package messages const ( - CONFIGMANAGER_LOADED = "CONFIGMANAGER_LOADED" - ADD_SENSOR_1 = "ADD_SENSOR_1" - REMOVE_SENSOR_1 = "REMOVE_SENSOR_1" + //CONFIGMANAGER_LOADED = "CONFIGMANAGER_LOADED" + //ADD_SENSOR_1 = "ADD_SENSOR_1" + //REMOVE_SENSOR_1 = "REMOVE_SENSOR_1" + + CFG_LOADED = "CONFIG_LOADED" + + SCF_READY = "SENSOR_CONFIG_READY" + SCF_STOPPED = "SENSOR_CONFIG_STOPPED" + SCF_SENSOR_ADD_DONE = "SENSOR_CONFIG_SENSOR_ADD_DONE" + + SCF_SENSOR_UPDATE_DONE = "SENSOR_CONFIG_SENSOR_UPDATE_DONE" ) \ No newline at end of file diff --git a/observer/messages/crawler_manager.go b/observer/messages/crawler_manager.go index d88bd51..05f8aa7 100644 --- a/observer/messages/crawler_manager.go +++ b/observer/messages/crawler_manager.go @@ -2,11 +2,11 @@ package messages const ( - CRAWLER_READY = "CRAWLER_READY" - CRAWLER_STOPPED = "CRAWLER_STOPPED" - CRAWLER_SENSOR_ADD_DONE = "CRAWLER_SENSOR_ADD_DONE" - CRAWLER_SENSOR_REMOVE_DONE = "CRAWLER_SENSOR_REMOVE_DONE" - CRAWLER_SENSOR_UPDATE_DONE = "CRAWLER_SENSOR_UPDATE_DONE" - CRAWLER_UPDATE_DONE = "CRAWLER_UPDATE_DONE" + CRM_READY = "CRAWLER_READY" + CRM_STOPPED = "CRAWLER_STOPPED" + CRM_SENSOR_ADD_DONE = "CRAWLER_SENSOR_ADD_DONE" + CRM_SENSOR_REMOVE_DONE = "CRAWLER_SENSOR_REMOVE_DONE" + CRM_SENSOR_UPDATE_DONE = "CRAWLER_SENSOR_UPDATE_DONE" + CRM_UPDATE_DONE = "CRAWLER_UPDATE_DONE" ) \ No newline at end of file