overflow_discovery/service/service.go

26 lines
493 B
Go
Raw Normal View History

2017-12-04 09:37:39 +00:00
package service
2017-11-15 06:59:43 +00:00
2018-03-22 16:11:03 +00:00
import (
2018-03-27 09:51:48 +00:00
"reflect"
2018-03-22 16:11:03 +00:00
oopcs "git.loafle.net/overflow/overflow_probe_container/service"
)
2018-03-27 09:51:48 +00:00
var (
ServicesToStartAndStop = []reflect.Type{
reflect.TypeOf((*oopcs.SensorConfigService)(nil)),
reflect.TypeOf((*oopcs.CrawlerService)(nil)),
reflect.TypeOf((*oopcs.ProbeService)(nil)),
reflect.TypeOf((*DiscoveryService)(nil)),
reflect.TypeOf((*oopcs.StateService)(nil)),
}
)
2018-03-16 07:46:31 +00:00
func InitService() {
2018-03-22 16:11:03 +00:00
oopcs.InitService()
2018-03-16 07:46:31 +00:00
}
func DestroyService() {
2018-03-22 16:11:03 +00:00
oopcs.DestroyService()
2017-11-15 06:59:43 +00:00
}