overflow_probes/service/service.go

41 lines
1.0 KiB
Go
Raw Normal View History

2017-12-08 12:01:38 +00:00
package service
func InitService() {
}
func DestroyService() {
}
2018-03-15 13:52:23 +00:00
// func GetService(name string) interface{} {
// var t reflect.Type
// switch name {
// case "CentralService":
// t = reflect.TypeOf((*CentralService)(nil))
// case "ConfigService":
// t = reflect.TypeOf((*ConfigService)(nil))
// case "ContainerService":
// t = reflect.TypeOf((*ContainerService)(nil))
// case "CrawlerService":
// t = reflect.TypeOf((*CrawlerService)(nil))
// case "DiscoveryService":
// t = reflect.TypeOf((*DiscoveryService)(nil))
// case "LogService":
// t = reflect.TypeOf((*LogService)(nil))
// case "ProbeService":
// t = reflect.TypeOf((*ProbeService)(nil))
// case "SensorService":
// t = reflect.TypeOf((*SensorService)(nil))
// default:
2018-03-21 10:22:13 +00:00
// logging.Logger().Panicf("Probe: Service[%s] is not exist", name)
2018-03-15 13:52:23 +00:00
// return nil
// }
2017-12-08 12:01:38 +00:00
2018-03-15 13:52:23 +00:00
// i, err := cdr.GetInstance(t)
// if nil != err {
2018-03-21 10:22:13 +00:00
// logging.Logger().Panicf("Probe: Getting Service[%s] is failed %v", name, err)
2018-03-15 13:52:23 +00:00
// return nil
// }
// return i
// }