overflow_probes/probe/on_notify.go
crusader 1b8ee93026 ing
2017-09-29 21:30:27 +09:00

57 lines
873 B
Go

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:
err = p.collector.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))
}
}