/
test.client.go
55 lines (44 loc) · 1.63 KB
/
test.client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Code generated by protoc-gen-nexus.
package message
import (
"github.com/StephenFaust/nexus-go/nexus"
)
// TestCommandServiceClient this is description
type TestCommandServiceClient struct {
client *nexus.RpcClient
}
func NewTestCommandServiceClient(client *nexus.RpcClient) TestCommandServiceClient {
return TestCommandServiceClient{
client: client,
}
}
// Add this is method description
func (sc *TestCommandServiceClient) Add(args *TestRequest, reply *TestResponse) error {
return sc.client.Invoke(args, "TestCommandService", "Add", reply)
}
// Sub this is method description
func (sc *TestCommandServiceClient) Sub(args *TestRequest, reply *TestResponse) error {
return sc.client.Invoke(args, "TestCommandService", "Sub", reply)
}
// Mul this is method description
func (sc *TestCommandServiceClient) Mul(args *TestRequest, reply *TestResponse) error {
return sc.client.Invoke(args, "TestCommandService", "Mul", reply)
}
// Div this is method description
func (sc *TestCommandServiceClient) Div(args *TestRequest, reply *TestResponse) error {
return sc.client.Invoke(args, "TestCommandService", "Div", reply)
}
type TestQueryServiceClient struct {
client *nexus.RpcClient
}
func NewTestQueryServiceClient(client *nexus.RpcClient) TestQueryServiceClient {
return TestQueryServiceClient{
client: client,
}
}
func (sc *TestQueryServiceClient) GetUserById(args *UserReq, reply *User) error {
return sc.client.Invoke(args, "TestQueryService", "GetUserById", reply)
}
func (sc *TestQueryServiceClient) ListUserByIds(args *ListUserReq, reply *UserResp) error {
return sc.client.Invoke(args, "TestQueryService", "ListUserByIds", reply)
}