Documentation ¶
Index ¶
- func CreateContext()
- func GetAllRegions(page, size int) (records.Page, error)
- func GetManufacturers(year int) (map[string]struct{}, error)
- func GetModels(year int, manufacturer string) (map[string]struct{}, error)
- func GetTrims(year int, manufacturer, model string) (map[string]struct{}, error)
- func Manufacturers(year int) regionCalc
- func Models(year int, manufacturerName string) regionCalc
- func Shutdown()
- func Trim(year int, manufacturer, model string) regionCalc
- type AssemblyPlant
- type Body
- type BodyLayout
- type Country
- type DriveLayout
- type Engine
- type EngineLayout
- type FuelType
- type Gearbox
- type GearboxType
- type Induction
- type Manufacturer
- type Platform
- type Region
- type Series
- type VIN
- type VINContext
- type VehicleType
- type WMInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContext ¶
func CreateContext()
func GetManufacturers ¶
func Manufacturers ¶
func Manufacturers(year int) regionCalc
Types ¶
type AssemblyPlant ¶
type AssemblyPlant struct { Code string Name string Country string StartYear int EndYear int Series []Series }
func (AssemblyPlant) Valid ¶
func (m AssemblyPlant) Valid() error
type BodyLayout ¶
type BodyLayout = int
const ( Sedan BodyLayout = iota Coupe Hatchback Van PickupTruck StationWagon Convertible SUV Fastback )
type Country ¶
type Country struct { RegionCode string Name string StartChar string EndChar string Manufacturers []Manufacturer }
type DriveLayout ¶
type DriveLayout = int
const ( FrontFront DriveLayout = iota FrontRear FrontFour MidFront MidRear MidFour RearFront RearRear RearFour )
type Engine ¶
type Gearbox ¶
type GearboxType ¶
type GearboxType = int
const ( Manual GearboxType = iota Automatic CVT Sequential )
type Manufacturer ¶
type Manufacturer struct { WMICode string Name string Description string VehicleType VehicleType AssemblyPlants []AssemblyPlant }
func (Manufacturer) Valid ¶
func (m Manufacturer) Valid() error
type Platform ¶
type Region ¶
func GetRegionByCode ¶
type VIN ¶
type VIN struct { Full string `hsk:"size(17)"` Unique string `hsk:"min(2)"` Serial int WMInfo WMInfo VDSInfo vds.VDSInfo }
VIN is the key to the entire vehicle database.
type VINContext ¶
type VINContext interface { CreateVIN(vin VIN) (hsk.Key, error) ValidateVIN(fullvin string) error BuildInfo(fullvin string) (VIN, error) FindVIN(fullvin string) (hsk.Record, error) GetVIN(key hsk.Key) (VIN, error) GetAllVINS(page, size int) (records.Page, error) }
func Context ¶
func Context() VINContext
type VehicleType ¶
type VehicleType int
const ( PassengerCar VehicleType = iota Motorcycle Truck MPV Trailer LSV // Low speed vehicle ATV Incomplete )
func (VehicleType) String ¶
func (s VehicleType) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.