Documentation
¶
Index ¶
- Variables
- func NewVehicleAdminEndpoints() []*api.Endpoint
- func NewVehicleEndpoints() []*api.Endpoint
- func RegisterVehicleAdminHandler(s server.Server, hdlr VehicleAdminHandler, opts ...server.HandlerOption) error
- func RegisterVehicleHandler(s server.Server, hdlr VehicleHandler, opts ...server.HandlerOption) error
- type LookupRequest
- type LookupResponse
- func (*LookupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupResponse) GetCo2Emissions() float64
- func (x *LookupResponse) GetColour() string
- func (x *LookupResponse) GetEngineCapacity() int32
- func (x *LookupResponse) GetFuelType() string
- func (x *LookupResponse) GetLastV5Issued() string
- func (x *LookupResponse) GetLogoUrl() string
- func (x *LookupResponse) GetMake() string
- func (x *LookupResponse) GetMonthOfFirstRegistration() string
- func (x *LookupResponse) GetMotExpiry() string
- func (x *LookupResponse) GetMotStatus() string
- func (x *LookupResponse) GetRegistration() string
- func (x *LookupResponse) GetTaxDueDate() string
- func (x *LookupResponse) GetTaxStatus() string
- func (x *LookupResponse) GetTypeApproval() string
- func (x *LookupResponse) GetWheelplan() string
- func (x *LookupResponse) GetYearOfManufacture() int32
- func (*LookupResponse) ProtoMessage()
- func (x *LookupResponse) ProtoReflect() protoreflect.Message
- func (x *LookupResponse) Reset()
- func (x *LookupResponse) String() string
- type SetLogoRequest
- func (*SetLogoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetLogoRequest) GetMake() string
- func (x *SetLogoRequest) GetUrl() string
- func (*SetLogoRequest) ProtoMessage()
- func (x *SetLogoRequest) ProtoReflect() protoreflect.Message
- func (x *SetLogoRequest) Reset()
- func (x *SetLogoRequest) String() string
- type SetLogoResponse
- type VehicleAdminHandler
- type VehicleAdminService
- type VehicleHandler
- type VehicleService
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 NewVehicleEndpoints ¶
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 {
SetLogo(context.Context, *SetLogoRequest, *SetLogoResponse) error
}
type VehicleAdminService ¶ added in v0.26.0
type VehicleAdminService interface {
SetLogo(ctx context.Context, in *SetLogoRequest, opts ...client.CallOption) (*SetLogoResponse, error)
}
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
Click to show internal directories.
Click to hide internal directories.