Documentation ¶
Index ¶
- func CreateContext()
- func GetVehicle(key hsk.Key) (hsk.Record, error)
- func GetVehicles(page, pagesize int) (records.Page, error)
- func Manufacturers(year int) regionCalc
- func Models(year int, manufacturerName string) regionCalc
- func Shutdown()
- func Trim(year int, manufacturer, model string) regionCalc
- type Engine
- type Gearbox
- type SeriesInfo
- type Vehicle
- type VehicleContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContext ¶
func CreateContext()
func Manufacturers ¶
func Manufacturers(year int) regionCalc
Types ¶
type SeriesInfo ¶
type Vehicle ¶
type Vehicle struct { VINKey hsk.Key FullVIN string Series SeriesInfo Colour string PaintNo string Engine Engine Gearbox Gearbox BodyStyle bodytype.Enum Doors int Extra []string Spare bool Service bool Condition string Issues string `hsk:"null"` Mileage int Info string `hsk:"size(128)"` Year int `hsk:"null"` HasNatis bool `hsk:"default(false)"` EstValue int64 LicenseExpiry time.Time }
func NewVehicle ¶ added in v1.1.0
func NewVehicle() Vehicle
type VehicleContext ¶
type VehicleContext interface { GetManufacturers(year int) (map[string]struct{}, error) GetModels(year int, manufacturer string) (map[string]struct{}, error) GetTrims(year int, manufacturer, model string) (map[string]struct{}, error) GetVehicle(key hsk.Key) (Vehicle, error) FindVehicles(page, size int) (records.Page, error) CreateVehicle(obj Vehicle) (hsk.Key, error) UpdateVehicle(key hsk.Key, obj Vehicle) error }
func Context ¶ added in v1.0.10
func Context() VehicleContext
Source Files ¶
Click to show internal directories.
Click to hide internal directories.