overflow_discovery/service/service.go
crusader 3ebe20681f ing
2018-03-27 18:51:48 +09:00

26 lines
493 B
Go

package service
import (
"reflect"
oopcs "git.loafle.net/overflow/overflow_probe_container/service"
)
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)),
}
)
func InitService() {
oopcs.InitService()
}
func DestroyService() {
oopcs.DestroyService()
}