2018-08-23 09:21:48 +00:00
|
|
|
package service
|
|
|
|
|
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
|
|
|
|
oa "git.loafle.net/overflow/annotation-go"
|
|
|
|
od "git.loafle.net/overflow/di-go"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
od.RegisterType(PingServiceType)
|
|
|
|
}
|
|
|
|
|
|
|
|
var PingServiceType = reflect.TypeOf((*PingService)(nil))
|
|
|
|
|
|
|
|
type PingService struct {
|
|
|
|
oa.TypeAnnotation `annotation:"@Injectable('name': 'PingService') @Service()"`
|
2018-09-04 07:07:45 +00:00
|
|
|
|
|
|
|
_InitService oa.MethodAnnotation `annotation:"@PostConstruct()"`
|
|
|
|
_DestroyService oa.MethodAnnotation `annotation:"@PreDestroy()"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *PingService) InitService() {
|
|
|
|
|
2018-08-23 09:21:48 +00:00
|
|
|
}
|
|
|
|
|
2018-09-04 07:07:45 +00:00
|
|
|
func (s *PingService) DestroyService() {
|
|
|
|
|
|
|
|
}
|
2018-08-23 10:00:34 +00:00
|
|
|
func (s *PingService) PingHost() error {
|
|
|
|
return nil
|
2018-08-23 09:21:48 +00:00
|
|
|
}
|
|
|
|
|
2018-08-23 10:00:34 +00:00
|
|
|
func (s *PingService) PingService() error {
|
|
|
|
return nil
|
2018-08-23 09:21:48 +00:00
|
|
|
}
|
|
|
|
|
2018-08-23 10:00:34 +00:00
|
|
|
func (s *PingService) PingAll() error {
|
|
|
|
return nil
|
2018-08-23 09:21:48 +00:00
|
|
|
}
|