42 lines
693 B
Go
42 lines
693 B
Go
package service
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
cda "git.loafle.net/commons/di-go/annotation"
|
|
cdr "git.loafle.net/commons/di-go/registry"
|
|
_ "git.loafle.net/overflow/commons-go/core/annotation"
|
|
)
|
|
|
|
var DiscoveryServiceType = reflect.TypeOf((*DiscoveryService)(nil))
|
|
|
|
func init() {
|
|
cdr.RegisterType(DiscoveryServiceType)
|
|
}
|
|
|
|
type DiscoveryService struct {
|
|
cda.TypeAnnotation `annotation:"@overflow:RPCService()"`
|
|
}
|
|
|
|
func (s *DiscoveryService) InitService() error {
|
|
return nil
|
|
}
|
|
|
|
func (s *DiscoveryService) StartService() error {
|
|
|
|
return nil
|
|
}
|
|
|
|
func (s *DiscoveryService) StopService() {
|
|
|
|
}
|
|
|
|
func (s *DiscoveryService) DestroyService() {
|
|
|
|
}
|
|
|
|
func (s *DiscoveryService) Accept() error {
|
|
|
|
return nil
|
|
}
|