core

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_core_vehicle_proto protoreflect.FileDescriptor
View Source
var VehicleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "core.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/vehicle.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

func RegisterVehicleServiceServer(s grpc.ServiceRegistrar, srv VehicleServiceServer)

Types

type NumberRequest added in v0.0.5

type NumberRequest struct {
	Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*NumberRequest) Descriptor deprecated added in v0.0.5

func (*NumberRequest) Descriptor() ([]byte, []int)

Deprecated: Use NumberRequest.ProtoReflect.Descriptor instead.

func (*NumberRequest) GetNumber added in v0.0.5

func (x *NumberRequest) GetNumber() string

func (*NumberRequest) ProtoMessage added in v0.0.5

func (*NumberRequest) ProtoMessage()

func (*NumberRequest) ProtoReflect added in v0.0.5

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

func (*NumberRequest) Reset added in v0.0.5

func (x *NumberRequest) Reset()

func (*NumberRequest) String added in v0.0.5

func (x *NumberRequest) String() string

type Result added in v0.0.5

type Result struct {
	Vehicles []*Vehicle `protobuf:"bytes,1,rep,name=vehicles,proto3" json:"vehicles,omitempty"`
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated added in v0.0.5

func (*Result) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetVehicles added in v0.0.5

func (x *Result) GetVehicles() []*Vehicle

func (*Result) ProtoMessage added in v0.0.5

func (*Result) ProtoMessage()

func (*Result) ProtoReflect added in v0.0.5

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

func (*Result) Reset added in v0.0.5

func (x *Result) Reset()

func (*Result) String added in v0.0.5

func (x *Result) String() string

type UnimplementedVehicleServiceServer

type UnimplementedVehicleServiceServer struct {
}

UnimplementedVehicleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVehicleServiceServer) FindByNumber

func (UnimplementedVehicleServiceServer) FindByVIN added in v0.0.5

type UnsafeVehicleServiceServer added in v0.0.6

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 VINRequest added in v0.0.5

type VINRequest struct {
	Vin string `protobuf:"bytes,1,opt,name=vin,proto3" json:"vin,omitempty"`
	// contains filtered or unexported fields
}

func (*VINRequest) Descriptor deprecated added in v0.0.5

func (*VINRequest) Descriptor() ([]byte, []int)

Deprecated: Use VINRequest.ProtoReflect.Descriptor instead.

func (*VINRequest) GetVin added in v0.0.5

func (x *VINRequest) GetVin() string

func (*VINRequest) ProtoMessage added in v0.0.5

func (*VINRequest) ProtoMessage()

func (*VINRequest) ProtoReflect added in v0.0.5

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

func (*VINRequest) Reset added in v0.0.5

func (x *VINRequest) Reset()

func (*VINRequest) String added in v0.0.5

func (x *VINRequest) String() string

type Vehicle

type Vehicle struct {
	Vin           *Vin                   `protobuf:"bytes,1,opt,name=vin,proto3" json:"vin,omitempty"`
	FirstRegDate  *common.Date           `protobuf:"bytes,2,opt,name=first_reg_date,json=firstRegDate,proto3" json:"first_reg_date,omitempty"`
	Brand         string                 `protobuf:"bytes,3,opt,name=brand,proto3" json:"brand,omitempty"`
	Model         string                 `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"`
	Year          int32                  `protobuf:"varint,5,opt,name=year,proto3" json:"year,omitempty"`
	Registrations []*registration.Record `protobuf:"bytes,6,rep,name=registrations,proto3" json:"registrations,omitempty"`
	Operations    []*operation.Record    `protobuf:"bytes,7,rep,name=operations,proto3" json:"operations,omitempty"`
	// contains filtered or unexported fields
}

func (*Vehicle) Descriptor deprecated

func (*Vehicle) Descriptor() ([]byte, []int)

Deprecated: Use Vehicle.ProtoReflect.Descriptor instead.

func (*Vehicle) GetBrand added in v0.0.5

func (x *Vehicle) GetBrand() string

func (*Vehicle) GetFirstRegDate added in v0.0.5

func (x *Vehicle) GetFirstRegDate() *common.Date

func (*Vehicle) GetModel added in v0.0.5

func (x *Vehicle) GetModel() string

func (*Vehicle) GetOperations added in v0.0.5

func (x *Vehicle) GetOperations() []*operation.Record

func (*Vehicle) GetRegistrations added in v0.0.5

func (x *Vehicle) GetRegistrations() []*registration.Record

func (*Vehicle) GetVin added in v0.0.5

func (x *Vehicle) GetVin() *Vin

func (*Vehicle) GetYear added in v0.0.5

func (x *Vehicle) GetYear() int32

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

type VehicleServiceClient

type VehicleServiceClient interface {
	FindByNumber(ctx context.Context, in *NumberRequest, opts ...grpc.CallOption) (*Result, error)
	FindByVIN(ctx context.Context, in *VINRequest, opts ...grpc.CallOption) (*Result, 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.

type VehicleServiceServer

type VehicleServiceServer interface {
	FindByNumber(context.Context, *NumberRequest) (*Result, error)
	FindByVIN(context.Context, *VINRequest) (*Result, error)
	// contains filtered or unexported methods
}

VehicleServiceServer is the server API for VehicleService service. All implementations must embed UnimplementedVehicleServiceServer for forward compatibility

type Vin added in v0.4.0

type Vin struct {
	Value      string                   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Vehicle    *vin_decoding.Vehicle    `protobuf:"bytes,2,opt,name=vehicle,proto3" json:"vehicle,omitempty"`
	DecodedVin *vin_decoding.DecodedVIN `protobuf:"bytes,3,opt,name=decoded_vin,json=decodedVin,proto3" json:"decoded_vin,omitempty"`
	// contains filtered or unexported fields
}

func (*Vin) Descriptor deprecated added in v0.4.0

func (*Vin) Descriptor() ([]byte, []int)

Deprecated: Use Vin.ProtoReflect.Descriptor instead.

func (*Vin) GetDecodedVin added in v0.4.0

func (x *Vin) GetDecodedVin() *vin_decoding.DecodedVIN

func (*Vin) GetValue added in v0.4.0

func (x *Vin) GetValue() string

func (*Vin) GetVehicle added in v0.4.0

func (x *Vin) GetVehicle() *vin_decoding.Vehicle

func (*Vin) ProtoMessage added in v0.4.0

func (*Vin) ProtoMessage()

func (*Vin) ProtoReflect added in v0.4.0

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

func (*Vin) Reset added in v0.4.0

func (x *Vin) Reset()

func (*Vin) String added in v0.4.0

func (x *Vin) String() string

Jump to

Keyboard shortcuts

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