|
@ -103,6 +103,7 @@ type OrderService interface { |
|
|
Cancel(in *Request, out *Response) error |
|
|
Cancel(in *Request, out *Response) error |
|
|
AutoReceive(in *Request, out *Response) error |
|
|
AutoReceive(in *Request, out *Response) error |
|
|
Get(in *Request, out *Response) error |
|
|
Get(in *Request, out *Response) error |
|
|
|
|
|
GetUserCount(in *Request, out *Response) error |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// AcceptOrderServiceClient accepts connections on the listener and serves requests
|
|
|
// AcceptOrderServiceClient accepts connections on the listener and serves requests
|
|
@ -189,6 +190,9 @@ func (c *OrderServiceClient) AutoReceive(in *Request, out *Response) error { |
|
|
func (c *OrderServiceClient) Get(in *Request, out *Response) error { |
|
|
func (c *OrderServiceClient) Get(in *Request, out *Response) error { |
|
|
return c.Call("OrderService.Get", in, out) |
|
|
return c.Call("OrderService.Get", in, out) |
|
|
} |
|
|
} |
|
|
|
|
|
func (c *OrderServiceClient) GetUserCount(in *Request, out *Response) error { |
|
|
|
|
|
return c.Call("OrderService.GetUserCount", in, out) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// DialOrderService connects to an OrderService at the specified network address.
|
|
|
// DialOrderService connects to an OrderService at the specified network address.
|
|
|
func DialOrderService(network, addr string) (*OrderServiceClient, *rpc.Client, error) { |
|
|
func DialOrderService(network, addr string) (*OrderServiceClient, *rpc.Client, error) { |
|
|