ing
This commit is contained in:
parent
71ce5d7095
commit
36863543bc
|
@ -183,8 +183,9 @@ var _ grpc.ClientConn
|
|||
// is compatible with the grpc package it is being compiled against.
|
||||
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 {
|
||||
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) {
|
||||
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 {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user