probe/service/CollectorService.go

43 lines
797 B
Go
Raw Normal View History

2018-04-17 14:11:13 +00:00
package service
import (
"reflect"
cda "git.loafle.net/commons/di-go/annotation"
cdr "git.loafle.net/commons/di-go/registry"
2018-04-26 08:43:40 +00:00
ocsp "git.loafle.net/overflow/commons-go/service/probe"
// For annotation
2018-04-17 14:11:13 +00:00
_ "git.loafle.net/overflow/commons-go/core/annotation"
)
var CollectorServiceType = reflect.TypeOf((*CollectorService)(nil))
func init() {
cdr.RegisterType(CollectorServiceType)
}
type CollectorService struct {
2018-04-26 08:43:40 +00:00
ocsp.CollectorService
2018-04-17 14:11:13 +00:00
cda.TypeAnnotation `annotation:"@overflow:RPCService()"`
DataClientService *DataClientService `annotation:"@Inject()"`
}
func (s *CollectorService) InitService() error {
return nil
}
func (s *CollectorService) StartService() error {
return nil
}
func (s *CollectorService) StopService() {
}
func (s *CollectorService) DestroyService() {
}