This commit is contained in:
crusader 2018-05-14 13:04:17 +09:00
parent 71ce5d7095
commit 36863543bc

View File

@ -183,8 +183,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4 const _ = grpc.SupportPackageIsVersion4
// Client API for CentralAPI service // CentralAPIClient is the client API for CentralAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CentralAPIClient interface { type CentralAPIClient interface {
Exec(ctx context.Context, in *ServerInput, opts ...grpc.CallOption) (*ServerOutput, error) Exec(ctx context.Context, in *ServerInput, opts ...grpc.CallOption) (*ServerOutput, error)
} }
@ -199,7 +200,7 @@ func NewCentralAPIClient(cc *grpc.ClientConn) CentralAPIClient {
func (c *centralAPIClient) Exec(ctx context.Context, in *ServerInput, opts ...grpc.CallOption) (*ServerOutput, error) { func (c *centralAPIClient) Exec(ctx context.Context, in *ServerInput, opts ...grpc.CallOption) (*ServerOutput, error) {
out := new(ServerOutput) out := new(ServerOutput)
err := grpc.Invoke(ctx, "/CentralAPI/exec", in, out, c.cc, opts...) err := c.cc.Invoke(ctx, "/CentralAPI/exec", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }