Documentation ¶
Index ¶
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type DecodeRequest
- type DecodeResultItem
- func (*DecodeResultItem) Descriptor() ([]byte, []int)deprecated
- func (x *DecodeResultItem) GetDecodedVin() *DecodedVIN
- func (x *DecodeResultItem) GetError() *common.Error
- func (x *DecodeResultItem) GetVehicle() *Vehicle
- func (*DecodeResultItem) ProtoMessage()
- func (x *DecodeResultItem) ProtoReflect() protoreflect.Message
- func (x *DecodeResultItem) Reset()
- func (x *DecodeResultItem) String() string
- type DecodeResultList
- func (*DecodeResultList) Descriptor() ([]byte, []int)deprecated
- func (x *DecodeResultList) GetItems() []*DecodeResultItem
- func (*DecodeResultList) ProtoMessage()
- func (x *DecodeResultList) ProtoReflect() protoreflect.Message
- func (x *DecodeResultList) Reset()
- func (x *DecodeResultList) String() string
- type DecodedVIN
- func (*DecodedVIN) Descriptor() ([]byte, []int)deprecated
- func (x *DecodedVIN) GetVds() string
- func (x *DecodedVIN) GetVis() string
- func (x *DecodedVIN) GetWmi() string
- func (*DecodedVIN) ProtoMessage()
- func (x *DecodedVIN) ProtoReflect() protoreflect.Message
- func (x *DecodedVIN) Reset()
- func (x *DecodedVIN) String() string
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- type UnsafeServiceServer
- type Vehicle
- func (*Vehicle) Descriptor() ([]byte, []int)deprecated
- func (x *Vehicle) GetCheck() bool
- func (x *Vehicle) GetCountry() string
- func (x *Vehicle) GetManufacturer() string
- func (x *Vehicle) GetRegion() string
- func (x *Vehicle) GetYear() uint32
- func (*Vehicle) ProtoMessage()
- func (x *Vehicle) ProtoReflect() protoreflect.Message
- func (x *Vehicle) Reset()
- func (x *Vehicle) String() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_vin_decoding_vin_decoding_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "vin_decoding.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Decode", Handler: _Service_Decode_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/vin_decoding/vin_decoding.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type DecodeRequest ¶
type DecodeRequest struct { Vins []string `protobuf:"bytes,1,rep,name=vins,proto3" json:"vins,omitempty"` // contains filtered or unexported fields }
func (*DecodeRequest) Descriptor
deprecated
func (*DecodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DecodeRequest.ProtoReflect.Descriptor instead.
func (*DecodeRequest) GetVins ¶
func (x *DecodeRequest) GetVins() []string
func (*DecodeRequest) ProtoMessage ¶
func (*DecodeRequest) ProtoMessage()
func (*DecodeRequest) ProtoReflect ¶
func (x *DecodeRequest) ProtoReflect() protoreflect.Message
func (*DecodeRequest) Reset ¶
func (x *DecodeRequest) Reset()
func (*DecodeRequest) String ¶
func (x *DecodeRequest) String() string
type DecodeResultItem ¶
type DecodeResultItem struct { Vehicle *Vehicle `protobuf:"bytes,1,opt,name=vehicle,proto3" json:"vehicle,omitempty"` DecodedVin *DecodedVIN `protobuf:"bytes,2,opt,name=decoded_vin,json=decodedVin,proto3" json:"decoded_vin,omitempty"` Error *common.Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*DecodeResultItem) Descriptor
deprecated
func (*DecodeResultItem) Descriptor() ([]byte, []int)
Deprecated: Use DecodeResultItem.ProtoReflect.Descriptor instead.
func (*DecodeResultItem) GetDecodedVin ¶
func (x *DecodeResultItem) GetDecodedVin() *DecodedVIN
func (*DecodeResultItem) GetError ¶
func (x *DecodeResultItem) GetError() *common.Error
func (*DecodeResultItem) GetVehicle ¶
func (x *DecodeResultItem) GetVehicle() *Vehicle
func (*DecodeResultItem) ProtoMessage ¶
func (*DecodeResultItem) ProtoMessage()
func (*DecodeResultItem) ProtoReflect ¶
func (x *DecodeResultItem) ProtoReflect() protoreflect.Message
func (*DecodeResultItem) Reset ¶
func (x *DecodeResultItem) Reset()
func (*DecodeResultItem) String ¶
func (x *DecodeResultItem) String() string
type DecodeResultList ¶
type DecodeResultList struct { Items []*DecodeResultItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*DecodeResultList) Descriptor
deprecated
func (*DecodeResultList) Descriptor() ([]byte, []int)
Deprecated: Use DecodeResultList.ProtoReflect.Descriptor instead.
func (*DecodeResultList) GetItems ¶
func (x *DecodeResultList) GetItems() []*DecodeResultItem
func (*DecodeResultList) ProtoMessage ¶
func (*DecodeResultList) ProtoMessage()
func (*DecodeResultList) ProtoReflect ¶
func (x *DecodeResultList) ProtoReflect() protoreflect.Message
func (*DecodeResultList) Reset ¶
func (x *DecodeResultList) Reset()
func (*DecodeResultList) String ¶
func (x *DecodeResultList) String() string
type DecodedVIN ¶
type DecodedVIN struct { Vds string `protobuf:"bytes,1,opt,name=vds,proto3" json:"vds,omitempty"` Vis string `protobuf:"bytes,2,opt,name=vis,proto3" json:"vis,omitempty"` Wmi string `protobuf:"bytes,3,opt,name=wmi,proto3" json:"wmi,omitempty"` // contains filtered or unexported fields }
func (*DecodedVIN) Descriptor
deprecated
func (*DecodedVIN) Descriptor() ([]byte, []int)
Deprecated: Use DecodedVIN.ProtoReflect.Descriptor instead.
func (*DecodedVIN) GetVds ¶
func (x *DecodedVIN) GetVds() string
func (*DecodedVIN) GetVis ¶
func (x *DecodedVIN) GetVis() string
func (*DecodedVIN) GetWmi ¶
func (x *DecodedVIN) GetWmi() string
func (*DecodedVIN) ProtoMessage ¶
func (*DecodedVIN) ProtoMessage()
func (*DecodedVIN) ProtoReflect ¶
func (x *DecodedVIN) ProtoReflect() protoreflect.Message
func (*DecodedVIN) Reset ¶
func (x *DecodedVIN) Reset()
func (*DecodedVIN) String ¶
func (x *DecodedVIN) String() string
type ServiceClient ¶
type ServiceClient interface {
Decode(ctx context.Context, in *DecodeRequest, opts ...grpc.CallOption) (*DecodeResultList, error)
}
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { Decode(context.Context, *DecodeRequest) (*DecodeResultList, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) Decode ¶
func (UnimplementedServiceServer) Decode(context.Context, *DecodeRequest) (*DecodeResultList, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type Vehicle ¶
type Vehicle struct { Check bool `protobuf:"varint,1,opt,name=check,proto3" json:"check,omitempty"` Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"` Manufacturer string `protobuf:"bytes,3,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"` Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` Year uint32 `protobuf:"varint,5,opt,name=year,proto3" json:"year,omitempty"` // contains filtered or unexported fields }
func (*Vehicle) Descriptor
deprecated
func (*Vehicle) GetCountry ¶
func (*Vehicle) GetManufacturer ¶
func (*Vehicle) ProtoMessage ¶
func (*Vehicle) ProtoMessage()
func (*Vehicle) ProtoReflect ¶
func (x *Vehicle) ProtoReflect() protoreflect.Message