Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupRequest ¶
type LookupRequest struct { // the vehicle registration number Registration string `json:"registration"` }
type LookupResponse ¶
type LookupResponse struct { // co2 emmissions Co2emissions float64 `json:"co2emissions"` // colour of vehicle Colour string `json:"colour"` // engine capacity EngineCapacity int32 `json:"engineCapacity"` // fuel type e.g petrol, diesel FuelType string `json:"fuelType"` // date of last v5 issue LastV5issued string `json:"lastV5issued"` // make of vehicle Make string `json:"make"` // month of first registration MonthOfFirstRegistration string `json:"monthOfFirstRegistration"` // mot expiry MotExpiry string `json:"motExpiry"` // mot status MotStatus string `json:"motStatus"` // registration number Registration string `json:"registration"` // tax due data TaxDueDate string `json:"taxDueDate"` // tax status TaxStatus string `json:"taxStatus"` // type approvale TypeApproval string `json:"typeApproval"` // wheel plan Wheelplan string `json:"wheelplan"` // year of manufacture YearOfManufacture int32 `json:"yearOfManufacture"` }
type VehicleService ¶
type VehicleService struct {
// contains filtered or unexported fields
}
func NewVehicleService ¶
func NewVehicleService(token string) *VehicleService
func (*VehicleService) Lookup ¶
func (t *VehicleService) Lookup(request *LookupRequest) (*LookupResponse, error)
Lookup a UK vehicle by it's registration number
Click to show internal directories.
Click to hide internal directories.