chore: revert soc rename for grpc (part 2)
This commit is contained in:
parent
ec17385112
commit
ad2a4b7022
3 changed files with 14 additions and 10 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.26.0
|
||||
// protoc v3.15.8
|
||||
// protoc v3.21.12
|
||||
// source: proto/vehicle.proto
|
||||
|
||||
package pb
|
||||
|
|
@ -287,9 +287,9 @@ var file_proto_vehicle_proto_goTypes = []interface{}{
|
|||
var file_proto_vehicle_proto_depIdxs = []int32{
|
||||
4, // 0: NewRequest.config:type_name -> NewRequest.ConfigEntry
|
||||
0, // 1: Vehicle.New:input_type -> NewRequest
|
||||
2, // 2: Vehicle.Soc:input_type -> SoCRequest
|
||||
2, // 2: Vehicle.SoC:input_type -> SoCRequest
|
||||
1, // 3: Vehicle.New:output_type -> NewReply
|
||||
3, // 4: Vehicle.Soc:output_type -> SoCReply
|
||||
3, // 4: Vehicle.SoC:output_type -> SoCReply
|
||||
3, // [3:5] is the sub-list for method output_type
|
||||
1, // [1:3] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.21.12
|
||||
// source: proto/vehicle.proto
|
||||
|
||||
package pb
|
||||
|
||||
|
|
@ -41,7 +45,7 @@ func (c *vehicleClient) New(ctx context.Context, in *NewRequest, opts ...grpc.Ca
|
|||
|
||||
func (c *vehicleClient) SoC(ctx context.Context, in *SoCRequest, opts ...grpc.CallOption) (*SoCReply, error) {
|
||||
out := new(SoCReply)
|
||||
err := c.cc.Invoke(ctx, "/Vehicle/Soc", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/Vehicle/SoC", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
@ -65,7 +69,7 @@ func (UnimplementedVehicleServer) New(context.Context, *NewRequest) (*NewReply,
|
|||
return nil, status.Errorf(codes.Unimplemented, "method New not implemented")
|
||||
}
|
||||
func (UnimplementedVehicleServer) SoC(context.Context, *SoCRequest) (*SoCReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Soc not implemented")
|
||||
return nil, status.Errorf(codes.Unimplemented, "method SoC not implemented")
|
||||
}
|
||||
func (UnimplementedVehicleServer) mustEmbedUnimplementedVehicleServer() {}
|
||||
|
||||
|
|
@ -98,7 +102,7 @@ func _Vehicle_New_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
|||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Vehicle_Soc_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
func _Vehicle_SoC_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SoCRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
|
|
@ -108,7 +112,7 @@ func _Vehicle_Soc_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
|||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/Vehicle/Soc",
|
||||
FullMethod: "/Vehicle/SoC",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(VehicleServer).SoC(ctx, req.(*SoCRequest))
|
||||
|
|
@ -128,8 +132,8 @@ var Vehicle_ServiceDesc = grpc.ServiceDesc{
|
|||
Handler: _Vehicle_New_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Soc",
|
||||
Handler: _Vehicle_Soc_Handler,
|
||||
MethodName: "SoC",
|
||||
Handler: _Vehicle_SoC_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ option go_package = "proto/pb";
|
|||
|
||||
service Vehicle {
|
||||
rpc New (NewRequest) returns (NewReply) {}
|
||||
rpc Soc (SoCRequest) returns (SoCReply) {}
|
||||
rpc SoC (SoCRequest) returns (SoCReply) {}
|
||||
}
|
||||
|
||||
message NewRequest {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue