Documentation ¶
Index ¶
- Variables
- func RegisterVehicleServiceServer(s grpc.ServiceRegistrar, srv VehicleServiceServer)
- type FinByNumberRequest
- func (*FinByNumberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FinByNumberRequest) GetNumber() string
- func (*FinByNumberRequest) ProtoMessage()
- func (x *FinByNumberRequest) ProtoReflect() protoreflect.Message
- func (x *FinByNumberRequest) Reset()
- func (x *FinByNumberRequest) String() string
- type FindByNumberResponse
- func (*FindByNumberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindByNumberResponse) GetVehicles() []*Vehicle
- func (*FindByNumberResponse) ProtoMessage()
- func (x *FindByNumberResponse) ProtoReflect() protoreflect.Message
- func (x *FindByNumberResponse) Reset()
- func (x *FindByNumberResponse) String() string
- type FindByVinRequest
- type FindByVinResponse
- type UnimplementedVehicleServiceServer
- type UnsafeVehicleServiceServer
- type Vehicle
- func (*Vehicle) Descriptor() ([]byte, []int)deprecated
- func (x *Vehicle) GetActions() []*core.Action
- func (x *Vehicle) GetBrand() string
- func (x *Vehicle) GetModel() string
- func (x *Vehicle) GetVin() string
- func (x *Vehicle) GetYear() int32
- func (*Vehicle) ProtoMessage()
- func (x *Vehicle) ProtoReflect() protoreflect.Message
- func (x *Vehicle) Reset()
- func (x *Vehicle) String() string
- type VehicleServiceClient
- type VehicleServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_core_customer_customer_proto protoreflect.FileDescriptor
var VehicleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "core.customer.VehicleService", HandlerType: (*VehicleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindByNumber", Handler: _VehicleService_FindByNumber_Handler, }, { MethodName: "FindByVIN", Handler: _VehicleService_FindByVIN_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/core/customer/customer.proto", }
VehicleService_ServiceDesc is the grpc.ServiceDesc for VehicleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVehicleServiceServer ¶ added in v0.5.16
func RegisterVehicleServiceServer(s grpc.ServiceRegistrar, srv VehicleServiceServer)
Types ¶
type FinByNumberRequest ¶
type FinByNumberRequest struct { Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*FinByNumberRequest) Descriptor
deprecated
func (*FinByNumberRequest) Descriptor() ([]byte, []int)
Deprecated: Use FinByNumberRequest.ProtoReflect.Descriptor instead.
func (*FinByNumberRequest) GetNumber ¶
func (x *FinByNumberRequest) GetNumber() string
func (*FinByNumberRequest) ProtoMessage ¶
func (*FinByNumberRequest) ProtoMessage()
func (*FinByNumberRequest) ProtoReflect ¶
func (x *FinByNumberRequest) ProtoReflect() protoreflect.Message
func (*FinByNumberRequest) Reset ¶
func (x *FinByNumberRequest) Reset()
func (*FinByNumberRequest) String ¶
func (x *FinByNumberRequest) String() string
type FindByNumberResponse ¶
type FindByNumberResponse struct { Vehicles []*Vehicle `protobuf:"bytes,1,rep,name=vehicles,proto3" json:"vehicles,omitempty"` // contains filtered or unexported fields }
func (*FindByNumberResponse) Descriptor
deprecated
func (*FindByNumberResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindByNumberResponse.ProtoReflect.Descriptor instead.
func (*FindByNumberResponse) GetVehicles ¶
func (x *FindByNumberResponse) GetVehicles() []*Vehicle
func (*FindByNumberResponse) ProtoMessage ¶
func (*FindByNumberResponse) ProtoMessage()
func (*FindByNumberResponse) ProtoReflect ¶
func (x *FindByNumberResponse) ProtoReflect() protoreflect.Message
func (*FindByNumberResponse) Reset ¶
func (x *FindByNumberResponse) Reset()
func (*FindByNumberResponse) String ¶
func (x *FindByNumberResponse) String() string
type FindByVinRequest ¶
type FindByVinRequest struct { Vin string `protobuf:"bytes,1,opt,name=vin,proto3" json:"vin,omitempty"` // contains filtered or unexported fields }
func (*FindByVinRequest) Descriptor
deprecated
func (*FindByVinRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindByVinRequest.ProtoReflect.Descriptor instead.
func (*FindByVinRequest) GetVin ¶
func (x *FindByVinRequest) GetVin() string
func (*FindByVinRequest) ProtoMessage ¶
func (*FindByVinRequest) ProtoMessage()
func (*FindByVinRequest) ProtoReflect ¶
func (x *FindByVinRequest) ProtoReflect() protoreflect.Message
func (*FindByVinRequest) Reset ¶
func (x *FindByVinRequest) Reset()
func (*FindByVinRequest) String ¶
func (x *FindByVinRequest) String() string
type FindByVinResponse ¶
type FindByVinResponse struct { Vehicle *Vehicle `protobuf:"bytes,1,opt,name=vehicle,proto3" json:"vehicle,omitempty"` // contains filtered or unexported fields }
func (*FindByVinResponse) Descriptor
deprecated
func (*FindByVinResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindByVinResponse.ProtoReflect.Descriptor instead.
func (*FindByVinResponse) GetVehicle ¶
func (x *FindByVinResponse) GetVehicle() *Vehicle
func (*FindByVinResponse) ProtoMessage ¶
func (*FindByVinResponse) ProtoMessage()
func (*FindByVinResponse) ProtoReflect ¶
func (x *FindByVinResponse) ProtoReflect() protoreflect.Message
func (*FindByVinResponse) Reset ¶
func (x *FindByVinResponse) Reset()
func (*FindByVinResponse) String ¶
func (x *FindByVinResponse) String() string
type UnimplementedVehicleServiceServer ¶ added in v0.5.16
type UnimplementedVehicleServiceServer struct { }
UnimplementedVehicleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedVehicleServiceServer) FindByNumber ¶ added in v0.5.16
func (UnimplementedVehicleServiceServer) FindByNumber(context.Context, *FinByNumberRequest) (*FindByNumberResponse, error)
func (UnimplementedVehicleServiceServer) FindByVIN ¶ added in v0.5.16
func (UnimplementedVehicleServiceServer) FindByVIN(context.Context, *FindByVinRequest) (*FindByVinResponse, error)
type UnsafeVehicleServiceServer ¶ added in v0.5.16
type UnsafeVehicleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVehicleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VehicleServiceServer will result in compilation errors.
type Vehicle ¶
type Vehicle struct { Vin string `protobuf:"bytes,1,opt,name=vin,proto3" json:"vin,omitempty"` Brand string `protobuf:"bytes,2,opt,name=brand,proto3" json:"brand,omitempty"` Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` Year int32 `protobuf:"varint,4,opt,name=year,proto3" json:"year,omitempty"` Actions []*core.Action `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
func (*Vehicle) Descriptor
deprecated
func (*Vehicle) GetActions ¶
func (*Vehicle) ProtoMessage ¶
func (*Vehicle) ProtoMessage()
func (*Vehicle) ProtoReflect ¶
func (x *Vehicle) ProtoReflect() protoreflect.Message
type VehicleServiceClient ¶ added in v0.5.16
type VehicleServiceClient interface { FindByNumber(ctx context.Context, in *FinByNumberRequest, opts ...grpc.CallOption) (*FindByNumberResponse, error) FindByVIN(ctx context.Context, in *FindByVinRequest, opts ...grpc.CallOption) (*FindByVinResponse, error) }
VehicleServiceClient is the client API for VehicleService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewVehicleServiceClient ¶ added in v0.5.16
func NewVehicleServiceClient(cc grpc.ClientConnInterface) VehicleServiceClient
type VehicleServiceServer ¶ added in v0.5.16
type VehicleServiceServer interface { FindByNumber(context.Context, *FinByNumberRequest) (*FindByNumberResponse, error) FindByVIN(context.Context, *FindByVinRequest) (*FindByVinResponse, error) // contains filtered or unexported methods }
VehicleServiceServer is the server API for VehicleService service. All implementations must embed UnimplementedVehicleServiceServer for forward compatibility