overflow_probe_container/service/ProbeService.go
crusader bf761f7a63 ing
2018-03-23 17:10:04 +09:00

24 lines
474 B
Go

package service
import (
"reflect"
cda "git.loafle.net/commons_go/di/annotation"
cdr "git.loafle.net/commons_go/di/registry"
cr "git.loafle.net/commons_go/rpc"
)
func init() {
cdr.RegisterType(reflect.TypeOf((*ProbeService)(nil)))
}
type ProbeService struct {
cda.TypeAnnotation `annotation:"@overFlow:Service()"`
RPCServlet cr.Servlet
}
func (ps *ProbeService) Send(method string, params ...interface{}) error {
return ps.RPCServlet.Send(method, params...)
}