regenerated grpc libraries

main
Ben Grewell 4 years ago
parent 68d1db633d
commit ff56a74e50

@ -130,19 +130,19 @@ var file_control_proto_rawDesc = []byte{
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1f,
0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20,
0x01, 0x28, 0x05, 0x52, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x32, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x32,
0x4d, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x42, 0x0a, 0x0b, 0x53, 0x74, 0x53, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x48, 0x0a, 0x11, 0x47, 0x72,
0x61, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12,
0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65,
0x73, 0x74, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53,
0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x65, 0x6e, 0x67, 0x72, 0x65, 0x77, 0x65, 0x6c, 0x6c, 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x65, 0x6e, 0x67,
0x2e, 0x67, 0x6f, 0x2d, 0x69, 0x70, 0x65, 0x72, 0x66, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x72, 0x65, 0x77, 0x65, 0x6c, 0x6c, 0x2e, 0x67, 0x6f, 0x2d, 0x69, 0x70, 0x65, 0x72, 0x66, 0x2e,
0x6c, 0x42, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x01, 0x5a, 0x20, 0x67, 0x69, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x42, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x42, 0x47, 0x72, 0x65, 0x77, 0x65, 0x6c, 0x50, 0x01, 0x5a, 0x20, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x42,
0x6c, 0x2f, 0x67, 0x6f, 0x2d, 0x69, 0x70, 0x65, 0x72, 0x66, 0x2f, 0x61, 0x70, 0x69, 0xaa, 0x02, 0x47, 0x72, 0x65, 0x77, 0x65, 0x6c, 0x6c, 0x2f, 0x67, 0x6f, 0x2d, 0x69, 0x70, 0x65, 0x72, 0x66,
0x1a, 0x42, 0x65, 0x6e, 0x47, 0x72, 0x65, 0x77, 0x65, 0x6c, 0x6c, 0x2e, 0x47, 0x6f, 0x49, 0x70, 0x2f, 0x61, 0x70, 0x69, 0xaa, 0x02, 0x1a, 0x42, 0x65, 0x6e, 0x47, 0x72, 0x65, 0x77, 0x65, 0x6c,
0x65, 0x72, 0x66, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x6c, 0x2e, 0x47, 0x6f, 0x49, 0x70, 0x65, 0x72, 0x66, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
0x74, 0x6f, 0x33, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@ -163,8 +163,8 @@ var file_control_proto_goTypes = []interface{}{
(*StartServerResponse)(nil), // 1: api.StartServerResponse (*StartServerResponse)(nil), // 1: api.StartServerResponse
} }
var file_control_proto_depIdxs = []int32{ var file_control_proto_depIdxs = []int32{
0, // 0: api.Command.StartServer:input_type -> api.StartServerRequest 0, // 0: api.Command.GrpcRequestServer:input_type -> api.StartServerRequest
1, // 1: api.Command.StartServer:output_type -> api.StartServerResponse 1, // 1: api.Command.GrpcRequestServer:output_type -> api.StartServerResponse
1, // [1:2] is the sub-list for method output_type 1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type 0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension type_name
@ -235,7 +235,7 @@ const _ = grpc.SupportPackageIsVersion6
// //
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CommandClient interface { type CommandClient interface {
StartServer(ctx context.Context, in *StartServerRequest, opts ...grpc.CallOption) (*StartServerResponse, error) GrpcRequestServer(ctx context.Context, in *StartServerRequest, opts ...grpc.CallOption) (*StartServerResponse, error)
} }
type commandClient struct { type commandClient struct {
@ -246,9 +246,9 @@ func NewCommandClient(cc grpc.ClientConnInterface) CommandClient {
return &commandClient{cc} return &commandClient{cc}
} }
func (c *commandClient) StartServer(ctx context.Context, in *StartServerRequest, opts ...grpc.CallOption) (*StartServerResponse, error) { func (c *commandClient) GrpcRequestServer(ctx context.Context, in *StartServerRequest, opts ...grpc.CallOption) (*StartServerResponse, error) {
out := new(StartServerResponse) out := new(StartServerResponse)
err := c.cc.Invoke(ctx, "/api.Command/StartServer", in, out, opts...) err := c.cc.Invoke(ctx, "/api.Command/GrpcRequestServer", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -257,35 +257,35 @@ func (c *commandClient) StartServer(ctx context.Context, in *StartServerRequest,
// CommandServer is the server API for Command service. // CommandServer is the server API for Command service.
type CommandServer interface { type CommandServer interface {
StartServer(context.Context, *StartServerRequest) (*StartServerResponse, error) GrpcRequestServer(context.Context, *StartServerRequest) (*StartServerResponse, error)
} }
// UnimplementedCommandServer can be embedded to have forward compatible implementations. // UnimplementedCommandServer can be embedded to have forward compatible implementations.
type UnimplementedCommandServer struct { type UnimplementedCommandServer struct {
} }
func (*UnimplementedCommandServer) StartServer(context.Context, *StartServerRequest) (*StartServerResponse, error) { func (*UnimplementedCommandServer) GrpcRequestServer(context.Context, *StartServerRequest) (*StartServerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method StartServer not implemented") return nil, status.Errorf(codes.Unimplemented, "method GrpcRequestServer not implemented")
} }
func RegisterCommandServer(s *grpc.Server, srv CommandServer) { func RegisterCommandServer(s *grpc.Server, srv CommandServer) {
s.RegisterService(&_Command_serviceDesc, srv) s.RegisterService(&_Command_serviceDesc, srv)
} }
func _Command_StartServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Command_GrpcRequestServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StartServerRequest) in := new(StartServerRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(CommandServer).StartServer(ctx, in) return srv.(CommandServer).GrpcRequestServer(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/api.Command/StartServer", FullMethod: "/api.Command/GrpcRequestServer",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommandServer).StartServer(ctx, req.(*StartServerRequest)) return srv.(CommandServer).GrpcRequestServer(ctx, req.(*StartServerRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
@ -295,8 +295,8 @@ var _Command_serviceDesc = grpc.ServiceDesc{
HandlerType: (*CommandServer)(nil), HandlerType: (*CommandServer)(nil),
Methods: []grpc.MethodDesc{ Methods: []grpc.MethodDesc{
{ {
MethodName: "StartServer", MethodName: "GrpcRequestServer",
Handler: _Command_StartServer_Handler, Handler: _Command_GrpcRequestServer_Handler,
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},

Loading…
Cancel
Save