core

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 14 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 (
		0:  "BODY_UNKNOWN",
		1:  "BODY_SEDAN",
		2:  "BODY_CROSSOVER",
		3:  "BODY_MINIVAN",
		4:  "BODY_HATCHBACK",
		5:  "BODY_WAGON",
		6:  "BODY_COUPE",
		7:  "BODY_CONVERTIBLE",
		8:  "BODY_PICKUP",
		9:  "BODY_LIMOUSINE",
		10: "BODY_LIGHTTRUCK",
		11: "BODY_OTHER",
	}
		"BODY_UNKNOWN":     0,
		"BODY_SEDAN":       1,
		"BODY_CROSSOVER":   2,
		"BODY_MINIVAN":     3,
		"BODY_HATCHBACK":   4,
		"BODY_WAGON":       5,
		"BODY_COUPE":       6,
		"BODY_CONVERTIBLE": 7,
		"BODY_PICKUP":      8,
		"BODY_LIMOUSINE":   9,
		"BODY_LIGHTTRUCK":  10,
		"BODY_OTHER":       11,
	}
)

Enum value maps for Advertisement_BodyType.

View Source
var File_proto_core_action_proto protoreflect.FileDescriptor
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 Action added in v0.5.8

type Action struct {
	Number      string       `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Vin         string       `protobuf:"bytes,2,opt,name=vin,proto3" json:"vin,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"`
	Capacity    int32        `protobuf:"varint,6,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Color       string       `protobuf:"bytes,7,opt,name=color,proto3" json:"color,omitempty"`
	Fuel        string       `protobuf:"bytes,8,opt,name=fuel,proto3" json:"fuel,omitempty"`
	Kind        string       `protobuf:"bytes,9,opt,name=kind,proto3" json:"kind,omitempty"`
	Date        *common.Date `protobuf:"bytes,10,opt,name=date,proto3" json:"date,omitempty"`
	OwnWeight   int32        `protobuf:"varint,11,opt,name=own_weight,json=ownWeight,proto3" json:"own_weight,omitempty"`
	TotalWeight int32        `protobuf:"varint,12,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"`
	// Operation:
	Body       string                  `protobuf:"bytes,13,opt,name=body,proto3" json:"body,omitempty"`
	Purpose    string                  `protobuf:"bytes,14,opt,name=purpose,proto3" json:"purpose,omitempty"`
	Action     *operation.RecordAction `protobuf:"bytes,15,opt,name=action,proto3" json:"action,omitempty"`
	Department *operation.Department   `protobuf:"bytes,16,opt,name=department,proto3" json:"department,omitempty"`
	Owner      *operation.Owner        `protobuf:"bytes,17,opt,name=owner,proto3" json:"owner,omitempty"`
	// Registration:
	Code         string       `protobuf:"bytes,18,opt,name=code,proto3" json:"code,omitempty"`
	NumSeating   int32        `protobuf:"varint,19,opt,name=num_seating,json=numSeating,proto3" json:"num_seating,omitempty"`
	FirstRegDate *common.Date `protobuf:"bytes,20,opt,name=first_reg_date,json=firstRegDate,proto3" json:"first_reg_date,omitempty"`
	Category     string       `protobuf:"bytes,21,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*Action) Descriptor deprecated added in v0.5.8

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

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetAction added in v0.5.8

func (x *Action) GetAction() *operation.RecordAction

func (*Action) GetBody added in v0.5.8

func (x *Action) GetBody() string

func (*Action) GetBrand added in v0.5.8

func (x *Action) GetBrand() string

func (*Action) GetCapacity added in v0.5.8

func (x *Action) GetCapacity() int32

func (*Action) GetCategory added in v0.5.8

func (x *Action) GetCategory() string

func (*Action) GetCode added in v0.5.8

func (x *Action) GetCode() string

func (*Action) GetColor added in v0.5.8

func (x *Action) GetColor() string

func (*Action) GetDate added in v0.5.8

func (x *Action) GetDate() *common.Date

func (*Action) GetDepartment added in v0.5.8

func (x *Action) GetDepartment() *operation.Department

func (*Action) GetFirstRegDate added in v0.5.8

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

func (*Action) GetFuel added in v0.5.8

func (x *Action) GetFuel() string

func (*Action) GetKind added in v0.5.8

func (x *Action) GetKind() string

func (*Action) GetModel added in v0.5.8

func (x *Action) GetModel() string

func (*Action) GetNumSeating added in v0.5.8

func (x *Action) GetNumSeating() int32

func (*Action) GetNumber added in v0.5.8

func (x *Action) GetNumber() string

func (*Action) GetOwnWeight added in v0.5.8

func (x *Action) GetOwnWeight() int32

func (*Action) GetOwner added in v0.5.8

func (x *Action) GetOwner() *operation.Owner

func (*Action) GetPurpose added in v0.5.8

func (x *Action) GetPurpose() string

func (*Action) GetTotalWeight added in v0.5.8

func (x *Action) GetTotalWeight() int32

func (*Action) GetVin added in v0.5.8

func (x *Action) GetVin() string

func (*Action) GetYear added in v0.5.8

func (x *Action) GetYear() int32

func (*Action) ProtoMessage added in v0.5.8

func (*Action) ProtoMessage()

func (*Action) ProtoReflect added in v0.5.8

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

func (*Action) Reset added in v0.5.8

func (x *Action) Reset()

func (*Action) String added in v0.5.8

func (x *Action) String() string
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       *timestamppb.Timestamp       `protobuf:"bytes,11,opt,name=last_seen_at,json=lastSeenAt,proto3" json:"last_seen_at,omitempty"`
	PublishedAt      *timestamppb.Timestamp       `protobuf:"bytes,12,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"`
	ScrapedAt        *timestamppb.Timestamp       `protobuf:"bytes,13,opt,name=scraped_at,json=scrapedAt,proto3" json:"scraped_at,omitempty"`
	UpdatedAt        *timestamppb.Timestamp       `protobuf:"bytes,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             Advertisement_BodyType       `protobuf:"varint,21,opt,name=body,proto3,enum=core.Advertisement_BodyType" 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"`
	Number           string                       `protobuf:"bytes,24,opt,name=number,proto3" json:"number,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 (*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) 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() *timestamppb.Timestamp

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) GetNumber added in v0.5.7

func (x *Advertisement) GetNumber() 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() *timestamppb.Timestamp

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() *timestamppb.Timestamp

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() *timestamppb.Timestamp

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_BodyType int32
const (
)
func (Advertisement_BodyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Advertisement_BodyType.Descriptor instead.

func (x Advertisement_BodyType) 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"`
	Actions        []*Action              `protobuf:"bytes,9,rep,name=actions,proto3" json:"actions,omitempty"`
	Wanted         []*wanted.Vehicle      `protobuf:"bytes,10,rep,name=wanted,proto3" json:"wanted,omitempty"`
	// contains filtered or unexported fields
}

func (*Vehicle) Descriptor deprecated

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

Deprecated: Use Vehicle.ProtoReflect.Descriptor instead.

func (*Vehicle) GetActions added in v0.5.8

func (x *Vehicle) GetActions() []*Action

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) GetWanted added in v0.5.21

func (x *Vehicle) GetWanted() []*wanted.Vehicle

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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