vin_decoding

package
v0.5.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_vin_decoding_vin_decoding_proto protoreflect.FileDescriptor
View Source
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

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) Descriptor() ([]byte, []int)

Deprecated: Use Vehicle.ProtoReflect.Descriptor instead.

func (*Vehicle) GetCheck

func (x *Vehicle) GetCheck() bool

func (*Vehicle) GetCountry

func (x *Vehicle) GetCountry() string

func (*Vehicle) GetManufacturer

func (x *Vehicle) GetManufacturer() string

func (*Vehicle) GetRegion

func (x *Vehicle) GetRegion() string

func (*Vehicle) GetYear

func (x *Vehicle) GetYear() uint32

func (*Vehicle) ProtoMessage

func (*Vehicle) ProtoMessage()

func (*Vehicle) ProtoReflect

func (x *Vehicle) ProtoReflect() protoreflect.Message

func (*Vehicle) Reset

func (x *Vehicle) Reset()

func (*Vehicle) String

func (x *Vehicle) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL