| OLD | NEW |
| 1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
| 2 // source: 2.proto | 2 // source: 2.proto |
| 3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
| 4 | 4 |
| 5 package test | 5 package test |
| 6 | 6 |
| 7 import prpccommon "github.com/luci/luci-go/common/prpc" |
| 7 import prpc "github.com/luci/luci-go/server/prpc" | 8 import prpc "github.com/luci/luci-go/server/prpc" |
| 8 | 9 |
| 9 import proto "github.com/golang/protobuf/proto" | 10 import proto "github.com/golang/protobuf/proto" |
| 10 import fmt "fmt" | 11 import fmt "fmt" |
| 11 import math "math" | 12 import math "math" |
| 12 | 13 |
| 13 import ( | 14 import ( |
| 14 context "golang.org/x/net/context" | 15 context "golang.org/x/net/context" |
| 15 grpc "google.golang.org/grpc" | 16 grpc "google.golang.org/grpc" |
| 16 ) | 17 ) |
| 17 | 18 |
| 18 // Reference imports to suppress errors if they are not otherwise used. | 19 // Reference imports to suppress errors if they are not otherwise used. |
| 19 var _ = proto.Marshal | 20 var _ = proto.Marshal |
| 20 var _ = fmt.Errorf | 21 var _ = fmt.Errorf |
| 21 var _ = math.Inf | 22 var _ = math.Inf |
| 22 | 23 |
| 23 // Reference imports to suppress errors if they are not otherwise used. | 24 // Reference imports to suppress errors if they are not otherwise used. |
| 24 var _ context.Context | 25 var _ context.Context |
| 25 var _ grpc.ClientConn | 26 var _ grpc.ClientConn |
| 26 | 27 |
| 27 // Client API for S2 service | 28 // Client API for S2 service |
| 28 | 29 |
| 29 type S2Client interface { | 30 type S2Client interface { |
| 30 } | 31 } |
| 32 type s2PRPCClient struct { |
| 33 client *prpccommon.Client |
| 34 } |
| 35 |
| 36 func NewS2PRPCClient(client *prpccommon.Client) S2Client { |
| 37 return &s2PRPCClient{client} |
| 38 } |
| 31 | 39 |
| 32 type s2Client struct { | 40 type s2Client struct { |
| 33 cc *grpc.ClientConn | 41 cc *grpc.ClientConn |
| 34 } | 42 } |
| 35 | 43 |
| 36 func NewS2Client(cc *grpc.ClientConn) S2Client { | 44 func NewS2Client(cc *grpc.ClientConn) S2Client { |
| 37 return &s2Client{cc} | 45 return &s2Client{cc} |
| 38 } | 46 } |
| 39 | 47 |
| 40 // Server API for S2 service | 48 // Server API for S2 service |
| (...skipping 12 matching lines...) Expand all Loading... |
| 53 Streams: []grpc.StreamDesc{}, | 61 Streams: []grpc.StreamDesc{}, |
| 54 } | 62 } |
| 55 | 63 |
| 56 var fileDescriptor1 = []byte{ | 64 var fileDescriptor1 = []byte{ |
| 57 // 50 bytes of a gzipped FileDescriptorProto | 65 // 50 bytes of a gzipped FileDescriptorProto |
| 58 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x62,
0x37, 0xd2, 0x2b, 0x28, | 66 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x62,
0x37, 0xd2, 0x2b, 0x28, |
| 59 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x29, 0x49, 0x2d, 0x2e, 0x31, 0x62, 0xe1,
0x62, 0x0a, 0x36, 0x4a, | 67 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x29, 0x49, 0x2d, 0x2e, 0x31, 0x62, 0xe1,
0x62, 0x0a, 0x36, 0x4a, |
| 60 0x62, 0x03, 0x0b, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x2d,
0x0e, 0xfb, 0x1d, 0x00, | 68 0x62, 0x03, 0x0b, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x2d,
0x0e, 0xfb, 0x1d, 0x00, |
| 61 0x00, 0x00, | 69 0x00, 0x00, |
| 62 } | 70 } |
| OLD | NEW |