core

package
v0.5.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
		0: "FUEL_UNKNOWN",
		1: "FUEL_GASOLINE",
		2: "FUEL_DIESEL",
		3: "FUEL_GAS",
		4: "FUEL_GAS_GASOLINE",
		5: "FUEL_HYBRID",
		6: "FUEL_ELECTRIC",
		7: "FUEL_PROPANE",
		8: "FUEL_METHANE",
		9: "FUEL_OTHER",
	}
		"FUEL_UNKNOWN":      0,
		"FUEL_GASOLINE":     1,
		"FUEL_DIESEL":       2,
		"FUEL_GAS":          3,
		"FUEL_GAS_GASOLINE": 4,
		"FUEL_HYBRID":       5,
		"FUEL_ELECTRIC":     6,
		"FUEL_PROPANE":      7,
		"FUEL_METHANE":      8,
		"FUEL_OTHER":        9,
	}
)

Enum value maps for Advertisement_FuelType.

View Source
var (
		0: "GEARBOX_UKNOWN",
		1: "GEARBOX_AUTOMATIC",
		2: "GEARBOX_MANUAL",
		3: "GEARBOX_MANUMATIC",
		4: "GEARBOX_VARIATOR",
		5: "GEARBOX_AMT",
		6: "GEARBOX_OTHER",
	}
		"GEARBOX_UKNOWN":    0,
		"GEARBOX_AUTOMATIC": 1,
		"GEARBOX_MANUAL":    2,
		"GEARBOX_MANUMATIC": 3,
		"GEARBOX_VARIATOR":  4,
		"GEARBOX_AMT":       5,
		"GEARBOX_OTHER":     6,
	}
)

Enum value maps for Advertisement_GearboxType.

View Source
var (
		0: "WHEELDRIVE_UNKNOWN",
		1: "WHEELDRIVE_REAR",
		2: "WHEELDRIVE_FRONT",
		3: "WHEELDRIVE_ALL",
	}
		"WHEELDRIVE_UNKNOWN": 0,
		"WHEELDRIVE_REAR":    1,
		"WHEELDRIVE_FRONT":   2,
		"WHEELDRIVE_ALL":     3,
	}
)

Enum value maps for Advertisement_WheelDriveType.

View Source
var (
		0: "CATEGORY_UNKNOWN",
		1: "CATEGORY_CAR",
		2: "CATEGORY_TRUCK",
		3: "CATEGORY_MOTO",
		4: "CATEGORY_BUS",
		5: "CATEGORY_WATER",
		6: "CATEGORY_AIR",
		7: "CATEGORY_CAMPER",
		8: "CATEGORY_TRAILER",
		9: "CATEGORY_SPECIAL",
	}
		"CATEGORY_UNKNOWN": 0,
		"CATEGORY_CAR":     1,
		"CATEGORY_TRUCK":   2,
		"CATEGORY_MOTO":    3,
		"CATEGORY_BUS":     4,
		"CATEGORY_WATER":   5,
		"CATEGORY_AIR":     6,
		"CATEGORY_CAMPER":  7,
		"CATEGORY_TRAILER": 8,
		"CATEGORY_SPECIAL": 9,
	}
)

Enum value maps for Advertisement_Category.

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 Advertisement struct {
	Id                     uint32                       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Resource               string                       `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,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"`
	Category               Advertisement_Category       `protobuf:"varint,5,opt,name=category,proto3,enum=core.Advertisement_Category" json:"category,omitempty"`
	Title                  string                       `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"`
	IsVerified             bool                         `protobuf:"varint,7,opt,name=is_verified,json=isVerified,proto3" json:"is_verified,omitempty"`
	Url                    string                       `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"`
	Price                  uint32                       `protobuf:"varint,9,opt,name=price,proto3" json:"price,omitempty"`
	ImageUrls              []string                     `protobuf:"bytes,10,rep,name=image_urls,json=imageUrls,proto3" json:"image_urls,omitempty"`
	LastSeenAt             uint32                       `protobuf:"varint,11,opt,name=last_seen_at,json=lastSeenAt,proto3" json:"last_seen_at,omitempty"`
	PublishedAt            uint32                       `protobuf:"varint,12,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"`
	ScrapedAt              uint32                       `protobuf:"varint,13,opt,name=scraped_at,json=scrapedAt,proto3" json:"scraped_at,omitempty"`
	UpdatedAt              uint32                       `protobuf:"varint,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Year                   uint32                       `protobuf:"varint,15,opt,name=year,proto3" json:"year,omitempty"`
	Gearbox                Advertisement_GearboxType    `protobuf:"varint,16,opt,name=gearbox,proto3,enum=core.Advertisement_GearboxType" json:"gearbox,omitempty"`
	WheelDrive             Advertisement_WheelDriveType `` /* 132-byte string literal not displayed */
	EngineCapacity         float64                      `protobuf:"fixed64,18,opt,name=engine_capacity,json=engineCapacity,proto3" json:"engine_capacity,omitempty"`
	Fuel                   Advertisement_FuelType       `protobuf:"varint,19,opt,name=fuel,proto3,enum=core.Advertisement_FuelType" json:"fuel,omitempty"`
	Mileage                uint32                       `protobuf:"varint,20,opt,name=mileage,proto3" json:"mileage,omitempty"`
	Body                   string                       `protobuf:"bytes,21,opt,name=body,proto3" json:"body,omitempty"`
	IsCustomsCleared       bool                         `protobuf:"varint,22,opt,name=is_customs_cleared,json=isCustomsCleared,proto3" json:"is_customs_cleared,omitempty"`
	Vin                    string                       `protobuf:"bytes,23,opt,name=vin,proto3" json:"vin,omitempty"`
	RegistrationNumberPage string                       `` /* 130-byte string literal not displayed */
	IdOnResource           uint32                       `protobuf:"varint,25,opt,name=id_on_resource,json=idOnResource,proto3" json:"id_on_resource,omitempty"`
	// contains filtered or unexported fields
}

func (*Advertisement) Descriptor deprecated added in v0.5.1

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

Deprecated: Use Advertisement.ProtoReflect.Descriptor instead.

func (*Advertisement) GetBody added in v0.5.1

func (x *Advertisement) GetBody() string

func (*Advertisement) GetBrand added in v0.5.1

func (x *Advertisement) GetBrand() string

func (*Advertisement) GetCategory added in v0.5.1

func (x *Advertisement) GetCategory() Advertisement_Category

func (*Advertisement) GetEngineCapacity added in v0.5.1

func (x *Advertisement) GetEngineCapacity() float64

func (*Advertisement) GetFuel added in v0.5.1

func (*Advertisement) GetGearbox added in v0.5.1

func (x *Advertisement) GetGearbox() Advertisement_GearboxType

func (*Advertisement) GetId added in v0.5.1

func (x *Advertisement) GetId() uint32

func (*Advertisement) GetIdOnResource added in v0.5.1

func (x *Advertisement) GetIdOnResource() uint32

func (*Advertisement) GetImageUrls added in v0.5.1

func (x *Advertisement) GetImageUrls() []string

func (*Advertisement) GetIsCustomsCleared added in v0.5.1

func (x *Advertisement) GetIsCustomsCleared() bool

func (*Advertisement) GetIsVerified added in v0.5.1

func (x *Advertisement) GetIsVerified() bool

func (*Advertisement) GetLastSeenAt added in v0.5.1

func (x *Advertisement) GetLastSeenAt() uint32

func (*Advertisement) GetMileage added in v0.5.1

func (x *Advertisement) GetMileage() uint32

func (*Advertisement) GetModel added in v0.5.1

func (x *Advertisement) GetModel() string

func (*Advertisement) GetPrice added in v0.5.1

func (x *Advertisement) GetPrice() uint32

func (*Advertisement) GetPublishedAt added in v0.5.1

func (x *Advertisement) GetPublishedAt() uint32

func (*Advertisement) GetRegistrationNumberPage added in v0.5.1

func (x *Advertisement) GetRegistrationNumberPage() string

func (*Advertisement) GetResource added in v0.5.1

func (x *Advertisement) GetResource() string

func (*Advertisement) GetScrapedAt added in v0.5.1

func (x *Advertisement) GetScrapedAt() uint32

func (*Advertisement) GetTitle added in v0.5.1

func (x *Advertisement) GetTitle() string

func (*Advertisement) GetUpdatedAt added in v0.5.1

func (x *Advertisement) GetUpdatedAt() uint32

func (*Advertisement) GetUrl added in v0.5.1

func (x *Advertisement) GetUrl() string

func (*Advertisement) GetVin added in v0.5.1

func (x *Advertisement) GetVin() string

func (*Advertisement) GetWheelDrive added in v0.5.1

func (x *Advertisement) GetWheelDrive() Advertisement_WheelDriveType

func (*Advertisement) GetYear added in v0.5.1

func (x *Advertisement) GetYear() uint32

func (*Advertisement) ProtoMessage added in v0.5.1

func (*Advertisement) ProtoMessage()

func (*Advertisement) ProtoReflect added in v0.5.1

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

func (*Advertisement) Reset added in v0.5.1

func (x *Advertisement) Reset()

func (*Advertisement) String added in v0.5.1

func (x *Advertisement) String() string
type Advertisement_Category int32
const (
)
func (Advertisement_Category) EnumDescriptor() ([]byte, []int)

Deprecated: Use Advertisement_Category.Descriptor instead.

func (x Advertisement_Category) String() string
type Advertisement_FuelType int32
const (
)
func (Advertisement_FuelType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Advertisement_FuelType.Descriptor instead.

func (x Advertisement_FuelType) String() string
type Advertisement_GearboxType int32
const (
)
func (Advertisement_GearboxType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Advertisement_GearboxType.Descriptor instead.

func (x Advertisement_GearboxType) String() string
type Advertisement_WheelDriveType int32
const (
)
func (Advertisement_WheelDriveType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Advertisement_WheelDriveType.Descriptor instead.

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"`
	Advertisements []*Advertisement       `protobuf:"bytes,8,rep,name=advertisements,proto3" json:"advertisements,omitempty"`
	// contains filtered or unexported fields
}

func (*Vehicle) Descriptor deprecated

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

Deprecated: Use Vehicle.ProtoReflect.Descriptor instead.

func (*Vehicle) GetAdvertisements added in v0.5.3

func (x *Vehicle) GetAdvertisements() []*Advertisement

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