package probe import ( "fmt" "git.loafle.net/commons_go/logging" "git.loafle.net/overflow/overflow_probes/central/api/module" ) func (p *probe) onNotify(method string, params []string) { var err error switch method { case module.CrawlerService_Install: break case module.CrawlerService_Uninstall: break case module.CrawlerService_Update: break case module.SensorService_Start: break case module.SensorService_Stop: break case module.SensorService_Add: break case module.SensorService_Remove: break case module.SensorService_Update: break case module.ProbeService_Update: break case module.LogService_Send: break case module.DiscoveryService_Start: break case module.DiscoveryService_Stop: break } if nil != err { logging.Logger.Error(fmt.Sprintf("Probe notify error: %v", err)) } }