| Index: server/prpc/helloworld_test.pb_test.go
|
| diff --git a/server/prpc/helloworld_test.pb_test.go b/server/prpc/helloworld_test.pb_test.go
|
| index e471bb8bc7158ffb2952ea8b8f0aa3cf03b83f7f..4624febbd5016d474f638237270ddca920516280 100644
|
| --- a/server/prpc/helloworld_test.pb_test.go
|
| +++ b/server/prpc/helloworld_test.pb_test.go
|
| @@ -16,6 +16,8 @@ It has these top-level messages:
|
| */
|
| package prpc
|
|
|
| +import prpccommon "github.com/luci/luci-go/common/prpc"
|
| +
|
| import proto "github.com/golang/protobuf/proto"
|
| import fmt "fmt"
|
| import math "math"
|
| @@ -86,6 +88,21 @@ type GreeterClient interface {
|
| // Sends a greeting
|
| SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
|
| }
|
| +type greeterPRPCClient struct {
|
| + client *prpccommon.Client
|
| +}
|
| +
|
| +func NewGreeterPRPCClient(client *prpccommon.Client) GreeterClient {
|
| + return &greeterPRPCClient{client}
|
| +}
|
| +func (c *greeterPRPCClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) {
|
| + out := new(HelloReply)
|
| + err := c.client.Call(ctx, "prpc.Greeter", "SayHello", in, out, opts...)
|
| + if err != nil {
|
| + return nil, err
|
| + }
|
| + return out, nil
|
| +}
|
|
|
| type greeterClient struct {
|
| cc *grpc.ClientConn
|
| @@ -144,6 +161,21 @@ var _Greeter_serviceDesc = grpc.ServiceDesc{
|
| type CalcClient interface {
|
| Multiply(ctx context.Context, in *MultiplyRequest, opts ...grpc.CallOption) (*MultiplyResponse, error)
|
| }
|
| +type calcPRPCClient struct {
|
| + client *prpccommon.Client
|
| +}
|
| +
|
| +func NewCalcPRPCClient(client *prpccommon.Client) CalcClient {
|
| + return &calcPRPCClient{client}
|
| +}
|
| +func (c *calcPRPCClient) Multiply(ctx context.Context, in *MultiplyRequest, opts ...grpc.CallOption) (*MultiplyResponse, error) {
|
| + out := new(MultiplyResponse)
|
| + err := c.client.Call(ctx, "prpc.Calc", "Multiply", in, out, opts...)
|
| + if err != nil {
|
| + return nil, err
|
| + }
|
| + return out, nil
|
| +}
|
|
|
| type calcClient struct {
|
| cc *grpc.ClientConn
|
|
|