2017-09-28 10:09:33 +00:00
|
|
|
package probe
|
|
|
|
|
2017-09-29 12:30:27 +00:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"git.loafle.net/commons_go/logging"
|
|
|
|
"git.loafle.net/overflow/overflow_probes/central/api/module"
|
|
|
|
)
|
2017-09-28 10:09:33 +00:00
|
|
|
|
|
|
|
func (p *probe) onNotify(method string, params []string) {
|
2017-09-29 12:30:27 +00:00
|
|
|
var err error
|
2017-09-28 10:09:33 +00:00
|
|
|
switch method {
|
2017-09-29 12:30:27 +00:00
|
|
|
case module.CrawlerService_Install:
|
|
|
|
|
|
|
|
break
|
|
|
|
case module.CrawlerService_Uninstall:
|
|
|
|
|
|
|
|
break
|
|
|
|
case module.CrawlerService_Update:
|
|
|
|
|
|
|
|
break
|
|
|
|
case module.SensorService_Start:
|
|
|
|
|
|
|
|
break
|
|
|
|
case module.SensorService_Stop:
|
2017-09-28 10:09:33 +00:00
|
|
|
|
|
|
|
break
|
2017-09-29 12:30:27 +00:00
|
|
|
case module.SensorService_Add:
|
2017-09-28 10:09:33 +00:00
|
|
|
|
|
|
|
break
|
2017-09-29 12:30:27 +00:00
|
|
|
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))
|
2017-09-28 10:09:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|