| OLD | NEW |
| 1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
| 2 // source: 1.proto | 2 // source: 1.proto |
| 3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
| 4 | 4 |
| 5 /* | 5 /* |
| 6 Package test is a generated protocol buffer package. | 6 Package test is a generated protocol buffer package. |
| 7 | 7 |
| 8 It is generated from these files: | 8 It is generated from these files: |
| 9 1.proto | 9 1.proto |
| 10 2.proto | 10 2.proto |
| 11 | 11 |
| 12 It has these top-level messages: | 12 It has these top-level messages: |
| 13 Req | 13 Req |
| 14 Res | 14 Res |
| 15 */ | 15 */ |
| 16 package test | 16 package test |
| 17 | 17 |
| 18 import prpccommon "github.com/luci/luci-go/common/prpc" |
| 18 import prpc "github.com/luci/luci-go/server/prpc" | 19 import prpc "github.com/luci/luci-go/server/prpc" |
| 19 | 20 |
| 20 import proto "github.com/golang/protobuf/proto" | 21 import proto "github.com/golang/protobuf/proto" |
| 21 import fmt "fmt" | 22 import fmt "fmt" |
| 22 import math "math" | 23 import math "math" |
| 23 | 24 |
| 24 import ( | 25 import ( |
| 25 context "golang.org/x/net/context" | 26 context "golang.org/x/net/context" |
| 26 grpc "google.golang.org/grpc" | 27 grpc "google.golang.org/grpc" |
| 27 ) | 28 ) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 56 | 57 |
| 57 // Reference imports to suppress errors if they are not otherwise used. | 58 // Reference imports to suppress errors if they are not otherwise used. |
| 58 var _ context.Context | 59 var _ context.Context |
| 59 var _ grpc.ClientConn | 60 var _ grpc.ClientConn |
| 60 | 61 |
| 61 // Client API for S1 service | 62 // Client API for S1 service |
| 62 | 63 |
| 63 type S1Client interface { | 64 type S1Client interface { |
| 64 M(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Res, error) | 65 M(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Res, error) |
| 65 } | 66 } |
| 67 type s1PRPCClient struct { |
| 68 client *prpccommon.Client |
| 69 } |
| 70 |
| 71 func NewS1PRPCClient(client *prpccommon.Client) S1Client { |
| 72 return &s1PRPCClient{client} |
| 73 } |
| 74 |
| 75 func (c *s1PRPCClient) M(ctx context.Context, in *Req, opts ...grpc.CallOption)
(*Res, error) { |
| 76 out := new(Res) |
| 77 err := c.client.Call(ctx, "test.S1", "M", in, out, opts...) |
| 78 if err != nil { |
| 79 return nil, err |
| 80 } |
| 81 return out, nil |
| 82 } |
| 66 | 83 |
| 67 type s1Client struct { | 84 type s1Client struct { |
| 68 cc *grpc.ClientConn | 85 cc *grpc.ClientConn |
| 69 } | 86 } |
| 70 | 87 |
| 71 func NewS1Client(cc *grpc.ClientConn) S1Client { | 88 func NewS1Client(cc *grpc.ClientConn) S1Client { |
| 72 return &s1Client{cc} | 89 return &s1Client{cc} |
| 73 } | 90 } |
| 74 | 91 |
| 75 func (c *s1Client) M(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Re
s, error) { | 92 func (c *s1Client) M(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Re
s, error) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 134 |
| 118 var fileDescriptor0 = []byte{ | 135 var fileDescriptor0 = []byte{ |
| 119 // 92 bytes of a gzipped FileDescriptorProto | 136 // 92 bytes of a gzipped FileDescriptorProto |
| 120 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x62,
0x37, 0xd4, 0x2b, 0x28, | 137 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x62,
0x37, 0xd4, 0x2b, 0x28, |
| 121 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x29, 0x49, 0x2d, 0x2e, 0x51, 0x12, 0xe0,
0x62, 0x0e, 0x4a, 0x2d, | 138 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x29, 0x49, 0x2d, 0x2e, 0x51, 0x12, 0xe0,
0x62, 0x0e, 0x4a, 0x2d, |
| 122 0x14, 0xe2, 0xe4, 0x62, 0xac, 0x90, 0x60, 0x54, 0x60, 0xd4, 0x60, 0x86,
0x88, 0x14, 0x23, 0x89, | 139 0x14, 0xe2, 0xe4, 0x62, 0xac, 0x90, 0x60, 0x54, 0x60, 0xd4, 0x60, 0x86,
0x88, 0x14, 0x23, 0x89, |
| 123 0x18, 0x29, 0x72, 0x31, 0x05, 0x1b, 0x0a, 0x49, 0x73, 0x31, 0xfa, 0x0a,
0x71, 0xea, 0x81, 0x74, | 140 0x18, 0x29, 0x72, 0x31, 0x05, 0x1b, 0x0a, 0x49, 0x73, 0x31, 0xfa, 0x0a,
0x71, 0xea, 0x81, 0x74, |
| 124 0xe9, 0x01, 0xb5, 0x48, 0xc1, 0x99, 0xc5, 0x4a, 0x0c, 0x49, 0x6c, 0x60,
0x33, 0x8d, 0x01, 0x01, | 141 0xe9, 0x01, 0xb5, 0x48, 0xc1, 0x99, 0xc5, 0x4a, 0x0c, 0x49, 0x6c, 0x60,
0x33, 0x8d, 0x01, 0x01, |
| 125 0x00, 0x00, 0xff, 0xff, 0x2c, 0x75, 0xe9, 0x86, 0x5e, 0x00, 0x00, 0x00, | 142 0x00, 0x00, 0xff, 0xff, 0x2c, 0x75, 0xe9, 0x86, 0x5e, 0x00, 0x00, 0x00, |
| 126 } | 143 } |
| OLD | NEW |