vehicle

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_admin_proto protoreflect.FileDescriptor
View Source
var File_proto_vehicle_proto protoreflect.FileDescriptor

Functions

func NewVehicleAdminEndpoints added in v0.26.0

func NewVehicleAdminEndpoints() []*api.Endpoint

func NewVehicleEndpoints

func NewVehicleEndpoints() []*api.Endpoint

func RegisterVehicleAdminHandler added in v0.26.0

func RegisterVehicleAdminHandler(s server.Server, hdlr VehicleAdminHandler, opts ...server.HandlerOption) error

func RegisterVehicleHandler

func RegisterVehicleHandler(s server.Server, hdlr VehicleHandler, opts ...server.HandlerOption) error

Types

type LookupRequest

type LookupRequest struct {

	// the vehicle registration number
	Registration string `protobuf:"bytes,1,opt,name=registration,proto3" json:"registration,omitempty"`
	// contains filtered or unexported fields
}

Lookup a UK vehicle by it's registration number

func (*LookupRequest) Descriptor deprecated

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

Deprecated: Use LookupRequest.ProtoReflect.Descriptor instead.

func (*LookupRequest) GetRegistration

func (x *LookupRequest) GetRegistration() string

func (*LookupRequest) ProtoMessage

func (*LookupRequest) ProtoMessage()

func (*LookupRequest) ProtoReflect

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

func (*LookupRequest) Reset

func (x *LookupRequest) Reset()

func (*LookupRequest) String

func (x *LookupRequest) String() string

type LookupResponse

type LookupResponse struct {

	// registration number
	Registration string `protobuf:"bytes,1,opt,name=registration,proto3" json:"registration,omitempty"`
	// make of vehicle
	Make string `protobuf:"bytes,2,opt,name=make,proto3" json:"make,omitempty"`
	// colour of vehicle
	Colour string `protobuf:"bytes,3,opt,name=colour,proto3" json:"colour,omitempty"`
	// year of manufacture
	YearOfManufacture int32 `protobuf:"varint,4,opt,name=year_of_manufacture,json=yearOfManufacture,proto3" json:"year_of_manufacture,omitempty"`
	// co2 emmissions
	Co2Emissions float64 `protobuf:"fixed64,5,opt,name=co2_emissions,json=co2Emissions,proto3" json:"co2_emissions,omitempty"`
	// engine capacity
	EngineCapacity int32 `protobuf:"varint,6,opt,name=engine_capacity,json=engineCapacity,proto3" json:"engine_capacity,omitempty"`
	// fuel type e.g petrol, diesel
	FuelType string `protobuf:"bytes,7,opt,name=fuel_type,json=fuelType,proto3" json:"fuel_type,omitempty"`
	// month of first registration
	MonthOfFirstRegistration string `` /* 137-byte string literal not displayed */
	// mot status
	MotStatus string `protobuf:"bytes,9,opt,name=mot_status,json=motStatus,proto3" json:"mot_status,omitempty"`
	// mot expiry
	MotExpiry string `protobuf:"bytes,10,opt,name=mot_expiry,json=motExpiry,proto3" json:"mot_expiry,omitempty"`
	// tax due data
	TaxDueDate string `protobuf:"bytes,11,opt,name=tax_due_date,json=taxDueDate,proto3" json:"tax_due_date,omitempty"`
	// tax status
	TaxStatus string `protobuf:"bytes,12,opt,name=tax_status,json=taxStatus,proto3" json:"tax_status,omitempty"`
	// type approvale
	TypeApproval string `protobuf:"bytes,13,opt,name=type_approval,json=typeApproval,proto3" json:"type_approval,omitempty"`
	// wheel plan
	Wheelplan string `protobuf:"bytes,14,opt,name=wheelplan,proto3" json:"wheelplan,omitempty"`
	// date of last v5 issue
	LastV5Issued string `protobuf:"bytes,15,opt,name=last_v5_issued,json=lastV5Issued,proto3" json:"last_v5_issued,omitempty"`
	// url of logo for the make
	LogoUrl string `protobuf:"bytes,16,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupResponse) Descriptor deprecated

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

Deprecated: Use LookupResponse.ProtoReflect.Descriptor instead.

func (*LookupResponse) GetCo2Emissions

func (x *LookupResponse) GetCo2Emissions() float64

func (*LookupResponse) GetColour

func (x *LookupResponse) GetColour() string

func (*LookupResponse) GetEngineCapacity

func (x *LookupResponse) GetEngineCapacity() int32

func (*LookupResponse) GetFuelType

func (x *LookupResponse) GetFuelType() string

func (*LookupResponse) GetLastV5Issued

func (x *LookupResponse) GetLastV5Issued() string

func (*LookupResponse) GetLogoUrl added in v0.26.0

func (x *LookupResponse) GetLogoUrl() string

func (*LookupResponse) GetMake

func (x *LookupResponse) GetMake() string

func (*LookupResponse) GetMonthOfFirstRegistration

func (x *LookupResponse) GetMonthOfFirstRegistration() string

func (*LookupResponse) GetMotExpiry

func (x *LookupResponse) GetMotExpiry() string

func (*LookupResponse) GetMotStatus

func (x *LookupResponse) GetMotStatus() string

func (*LookupResponse) GetRegistration

func (x *LookupResponse) GetRegistration() string

func (*LookupResponse) GetTaxDueDate

func (x *LookupResponse) GetTaxDueDate() string

func (*LookupResponse) GetTaxStatus

func (x *LookupResponse) GetTaxStatus() string

func (*LookupResponse) GetTypeApproval

func (x *LookupResponse) GetTypeApproval() string

func (*LookupResponse) GetWheelplan

func (x *LookupResponse) GetWheelplan() string

func (*LookupResponse) GetYearOfManufacture

func (x *LookupResponse) GetYearOfManufacture() int32

func (*LookupResponse) ProtoMessage

func (*LookupResponse) ProtoMessage()

func (*LookupResponse) ProtoReflect

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

func (*LookupResponse) Reset

func (x *LookupResponse) Reset()

func (*LookupResponse) String

func (x *LookupResponse) String() string

type SetLogoRequest added in v0.26.0

type SetLogoRequest struct {
	Make string `protobuf:"bytes,1,opt,name=make,proto3" json:"make,omitempty"`
	Url  string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*SetLogoRequest) Descriptor deprecated added in v0.26.0

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

Deprecated: Use SetLogoRequest.ProtoReflect.Descriptor instead.

func (*SetLogoRequest) GetMake added in v0.26.0

func (x *SetLogoRequest) GetMake() string

func (*SetLogoRequest) GetUrl added in v0.26.0

func (x *SetLogoRequest) GetUrl() string

func (*SetLogoRequest) ProtoMessage added in v0.26.0

func (*SetLogoRequest) ProtoMessage()

func (*SetLogoRequest) ProtoReflect added in v0.26.0

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

func (*SetLogoRequest) Reset added in v0.26.0

func (x *SetLogoRequest) Reset()

func (*SetLogoRequest) String added in v0.26.0

func (x *SetLogoRequest) String() string

type SetLogoResponse added in v0.26.0

type SetLogoResponse struct {
	// contains filtered or unexported fields
}

func (*SetLogoResponse) Descriptor deprecated added in v0.26.0

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

Deprecated: Use SetLogoResponse.ProtoReflect.Descriptor instead.

func (*SetLogoResponse) ProtoMessage added in v0.26.0

func (*SetLogoResponse) ProtoMessage()

func (*SetLogoResponse) ProtoReflect added in v0.26.0

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

func (*SetLogoResponse) Reset added in v0.26.0

func (x *SetLogoResponse) Reset()

func (*SetLogoResponse) String added in v0.26.0

func (x *SetLogoResponse) String() string

type VehicleAdminHandler added in v0.26.0

type VehicleAdminHandler interface {
}

type VehicleAdminService added in v0.26.0

type VehicleAdminService interface {
}

func NewVehicleAdminService added in v0.26.0

func NewVehicleAdminService(name string, c client.Client) VehicleAdminService

type VehicleHandler

type VehicleHandler interface {
	Lookup(context.Context, *LookupRequest, *LookupResponse) error
}

type VehicleService

type VehicleService interface {
	Lookup(ctx context.Context, in *LookupRequest, opts ...client.CallOption) (*LookupResponse, error)
}

func NewVehicleService

func NewVehicleService(name string, c client.Client) VehicleService

Jump to

Keyboard shortcuts

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