31 lines
458 B
Go
31 lines
458 B
Go
|
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()"`
|
||
|
}
|
||
|
|
||
|
func (s *PingService) PingHost() {
|
||
|
|
||
|
}
|
||
|
|
||
|
func (s *PingService) PingService() {
|
||
|
|
||
|
}
|
||
|
|
||
|
func (s *PingService) PingAll() {
|
||
|
|
||
|
}
|