|
@ -99,6 +99,7 @@ func init() { |
|
|
|
|
|
|
|
|
type MsgRpcService interface { |
|
|
type MsgRpcService interface { |
|
|
SendMsg(in *Request, out *Response) error |
|
|
SendMsg(in *Request, out *Response) error |
|
|
|
|
|
SendNotcie(in *Request, out *Response) error |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// AcceptMsgRpcServiceClient accepts connections on the listener and serves requests
|
|
|
// AcceptMsgRpcServiceClient accepts connections on the listener and serves requests
|
|
@ -173,6 +174,9 @@ func NewMsgRpcServiceClient(conn io.ReadWriteCloser) (*MsgRpcServiceClient, *rpc |
|
|
func (c *MsgRpcServiceClient) SendMsg(in *Request, out *Response) error { |
|
|
func (c *MsgRpcServiceClient) SendMsg(in *Request, out *Response) error { |
|
|
return c.Call("MsgRpcService.SendMsg", in, out) |
|
|
return c.Call("MsgRpcService.SendMsg", in, out) |
|
|
} |
|
|
} |
|
|
|
|
|
func (c *MsgRpcServiceClient) SendNotcie(in *Request, out *Response) error { |
|
|
|
|
|
return c.Call("MsgRpcService.SendNotcie", in, out) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// DialMsgRpcService connects to an MsgRpcService at the specified network address.
|
|
|
// DialMsgRpcService connects to an MsgRpcService at the specified network address.
|
|
|
func DialMsgRpcService(network, addr string) (*MsgRpcServiceClient, *rpc.Client, error) { |
|
|
func DialMsgRpcService(network, addr string) (*MsgRpcServiceClient, *rpc.Client, error) { |
|
|