25 lines
475 B
Go
25 lines
475 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...)
|
||
|
}
|