├── scripts ├── gearbox.sql ├── model.sql ├── engine.sql ├── manufacturer.sql ├── assemblyplant.sql └── wmi.sql ├── CHANGELOG.md ├── docs ├── Datsun.xlsx ├── Honda.xlsx └── Nissan.xlsx ├── Dockerfile ├── .env ├── go.mod ├── pubspec.yaml ├── core ├── series.go ├── vinfilter.go ├── assemblyplant.go ├── regionfilter.go ├── gearbox.go ├── standardtype │ └── enum.go ├── body.go ├── country.go ├── platform.go ├── vds │ ├── vdsinfo.go │ ├── volvo.go │ ├── bmw.go │ └── toyota.go ├── manufacturer.go ├── lookup.go ├── engine.go ├── wminfo.go ├── region.go ├── regioncalc.go ├── dbcontext.go └── vin.go ├── README.md ├── lib ├── vinapi.dart └── lookupapi.dart ├── .gitignore ├── cmd ├── main.go └── vin_test.go ├── handles ├── validate.go ├── admin.go ├── region.go ├── handler.go └── lookup.go ├── docker-compose.yml ├── api ├── number.go ├── admin.go ├── region.go └── lookup.go ├── db └── temp.json ├── LICENSE └── go.sum /scripts/gearbox.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /scripts/model.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO Model 2 | VALUES(NOW(), FALSE, ) -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## Mango-VIN 2 | 3 | # 1.0.0 4 | 5 | * Initial Release -------------------------------------------------------------------------------- /docs/Datsun.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/louisevanderlith/vin/HEAD/docs/Datsun.xlsx -------------------------------------------------------------------------------- /docs/Honda.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/louisevanderlith/vin/HEAD/docs/Honda.xlsx -------------------------------------------------------------------------------- /docs/Nissan.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/louisevanderlith/vin/HEAD/docs/Nissan.xlsx -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM scratch 2 | 3 | COPY cmd/cmd . 4 | 5 | EXPOSE 8095 6 | 7 | ENTRYPOINT [ "./cmd" ] -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- 1 | KEYPATH=/certs/ 2 | PUBLICKEY=fullchain.pem 3 | PRIVATEKEY=privkey.pem 4 | HOST=.localhost/ 5 | SMTPUsername=frikkie@avosa.co.za 6 | SMTPPassword=not_real_password 7 | SMTPAddress=41.0.0.0 8 | SMTPPort=587 -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/louisevanderlith/vin 2 | 3 | require ( 4 | github.com/gorilla/mux v1.7.4 5 | github.com/louisevanderlith/droxolite v1.20.2 6 | github.com/louisevanderlith/husk v1.7.6 7 | github.com/rs/cors v1.7.0 8 | ) 9 | 10 | go 1.13 11 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: mango_vin 2 | version: 1.0.0 3 | description: Wrapper for VIN API 4 | repository: https://github.com/louisevanderlith/vin 5 | homepage: https://github.com/louisevanderlith/vin 6 | environment: 7 | sdk: '>=2.0.0 < 3.0.0' 8 | dependencies: 9 | mango_ui: '^1.0.3' -------------------------------------------------------------------------------- /core/series.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "github.com/louisevanderlith/husk/validation" 5 | ) 6 | 7 | type Series struct { 8 | Platform Platform 9 | Spec string 10 | StartYear int 11 | EndYear int 12 | } 13 | 14 | func (m Series) Valid() error { 15 | return validation.Struct(m) 16 | } 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vin 2 | Vehicle Database and VIN Decoder 3 | 4 | ## Run with Docker 5 | * $ docker build -t avosa/vin:dev . 6 | * $ docker rm VINDEV 7 | * $ docker run -d -p 8095:8095 --network mango_net -v db/:/db/ --name VINDEV avosa/vin:dev 8 | * $ docker logs VINDEV 9 | 10 | # API 11 | ``GET v1/lookup/WAUZZZ8E88A025765`` -------------------------------------------------------------------------------- /lib/vinapi.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'dart:html'; 3 | 4 | import 'package:mango_ui/requester.dart'; 5 | 6 | Future validateVIN(String vin) async { 7 | var apiroute = getEndpoint("vin"); 8 | var url = "${apiroute}/validate/${vin}"; 9 | 10 | return invokeService("GET", url, null); 11 | } 12 | -------------------------------------------------------------------------------- /core/vinfilter.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "github.com/louisevanderlith/husk/hsk" 5 | ) 6 | 7 | type vinFilter func(obj VIN) bool 8 | 9 | func (f vinFilter) Filter(obj hsk.Record) bool { 10 | return f(obj.GetValue().(VIN)) 11 | } 12 | 13 | func byFullVIN(full string) vinFilter { 14 | return func(obj VIN) bool { 15 | return obj.Full == full 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /core/assemblyplant.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "github.com/louisevanderlith/husk/validation" 5 | ) 6 | 7 | type AssemblyPlant struct { 8 | Code string 9 | Name string 10 | Country string 11 | StartYear int 12 | EndYear int 13 | Series []Series 14 | } 15 | 16 | func (m AssemblyPlant) Valid() error { 17 | return validation.Struct(m) 18 | } 19 | -------------------------------------------------------------------------------- /core/regionfilter.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "github.com/louisevanderlith/husk/hsk" 5 | ) 6 | 7 | type regionFilter func(obj Region) bool 8 | 9 | func (f regionFilter) Filter(obj hsk.Record) bool { 10 | return f(obj.GetValue().(Region)) 11 | } 12 | 13 | func byUniqueVIN(uniquevin string) regionFilter { 14 | regionChar := uniquevin[:1] 15 | 16 | return func(obj Region) bool { 17 | return obj.HasCode(regionChar) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.dll 4 | *.so 5 | *.dylib 6 | 7 | # Test binary, build with `go test -c` 8 | *.test 9 | 10 | # Output of the go coverage tool, specifically when used with LiteIDE 11 | *.out 12 | 13 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 14 | .glide/ 15 | 16 | vin 17 | dist 18 | .packages 19 | .dart_tool 20 | pubspec.lock 21 | 22 | db/*.husk 23 | !db/*.seed.json 24 | core/db/* 25 | 26 | cmd/cmd -------------------------------------------------------------------------------- /core/gearbox.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "github.com/louisevanderlith/husk/validation" 5 | ) 6 | 7 | type GearboxType = int 8 | 9 | const ( 10 | Manual GearboxType = iota 11 | Automatic 12 | CVT 13 | Sequential 14 | ) 15 | 16 | type Gearbox struct { 17 | SeriesCode string 18 | Code string 19 | Gears int 20 | Type string 21 | StartYear int 22 | EndYear int 23 | } 24 | 25 | func (m Gearbox) Valid() error { 26 | return validation.Struct(m) 27 | } 28 | -------------------------------------------------------------------------------- /core/standardtype/enum.go: -------------------------------------------------------------------------------- 1 | package standardtype 2 | 3 | //StandardType is used for VIN identification 4 | type StandardType int 5 | 6 | const ( 7 | ISO3779 StandardType = iota 8 | EU500More 9 | EU500Less 10 | NA2000More 11 | NA2000Less 12 | Pre1980 13 | ) 14 | 15 | var standardTypes = [...]string{ 16 | "ISO3779", 17 | "EU500More", 18 | "EU500Less", 19 | "NA2000More", 20 | "NA2000Less", 21 | "Pre1980"} 22 | 23 | func (s StandardType) String() string { 24 | return standardTypes[s] 25 | } 26 | -------------------------------------------------------------------------------- /core/body.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "github.com/louisevanderlith/husk/validation" 5 | ) 6 | 7 | type BodyLayout = int 8 | 9 | const ( 10 | Sedan BodyLayout = iota 11 | Coupe 12 | Hatchback 13 | Van 14 | PickupTruck 15 | StationWagon 16 | Convertible 17 | SUV 18 | Fastback 19 | ) 20 | 21 | type Body struct { 22 | Code string 23 | Layout string 24 | Doors int 25 | StartYear int 26 | EndYear int 27 | } 28 | 29 | func (m Body) Valid() error { 30 | return validation.Struct(m) 31 | } 32 | -------------------------------------------------------------------------------- /core/country.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "github.com/louisevanderlith/husk/validation" 5 | ) 6 | 7 | type Country struct { 8 | RegionCode string 9 | Name string 10 | StartChar string 11 | EndChar string 12 | Manufacturers []Manufacturer 13 | } 14 | 15 | func (m Country) Valid() error { 16 | return validation.Struct(m) 17 | } 18 | 19 | func (r *Country) HasCode(regionCode string) bool { 20 | s := getCharWeight(r.StartChar) 21 | e := getCharWeight(r.EndChar) 22 | v := getCharWeight(regionCode) 23 | 24 | return s <= v && v <= e 25 | } 26 | -------------------------------------------------------------------------------- /core/platform.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "github.com/louisevanderlith/husk/validation" 5 | ) 6 | 7 | type DriveLayout = int 8 | 9 | const ( 10 | FrontFront DriveLayout = iota 11 | FrontRear 12 | FrontFour 13 | MidFront 14 | MidRear 15 | MidFour 16 | RearFront 17 | RearRear 18 | RearFour 19 | ) 20 | 21 | type Platform struct { 22 | Code string 23 | Engine Engine 24 | Gearbox Gearbox 25 | Body Body 26 | DriveLayout string 27 | StartYear int 28 | EndYear int 29 | } 30 | 31 | func (m Platform) Valid() error { 32 | return validation.Struct(m) 33 | } 34 | 35 | /* 36 | 37 | */ -------------------------------------------------------------------------------- /cmd/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "flag" 5 | "github.com/louisevanderlith/vin/handles" 6 | "net/http" 7 | "time" 8 | 9 | "github.com/louisevanderlith/vin/core" 10 | ) 11 | 12 | func main() { 13 | issuer := flag.String("issuer", "http://127.0.0.1:8080/auth/realms/mango", "OIDC Provider's URL") 14 | audience := flag.String("audience", "vin", "Token target 'aud'") 15 | flag.Parse() 16 | 17 | core.CreateContext() 18 | defer core.Shutdown() 19 | 20 | srvr := &http.Server{ 21 | ReadTimeout: time.Second * 15, 22 | WriteTimeout: time.Second * 15, 23 | Addr: ":8095", 24 | Handler: handles.SetupRoutes(*issuer, *audience), 25 | } 26 | 27 | err := srvr.ListenAndServe() 28 | 29 | if err != nil { 30 | panic(err) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /core/vds/vdsinfo.go: -------------------------------------------------------------------------------- 1 | package vds 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | type VDSAnalyzer func(vds string, obj *VDSInfo) (interface{}, error) 8 | 9 | type VDSInfo struct { 10 | Code string //6 Characters of the VDS 11 | } 12 | 13 | var analyzers map[string]VDSAnalyzer 14 | 15 | func init() { 16 | analyzers = make(map[string]VDSAnalyzer) 17 | analyzers["BMW"] = AnalyseBMW 18 | analyzers["Toyota"] = AnalyseToyota 19 | } 20 | 21 | func FindVDSInfo(make string, unique string, years []int) (interface{}, error) { 22 | vdsStr := unique[3:8] 23 | 24 | result := &VDSInfo{Code: vdsStr} 25 | analyzer, ok := analyzers[make] 26 | 27 | if !ok { 28 | return nil, fmt.Errorf("no analyzer found for %s", make) 29 | } 30 | 31 | return analyzer(vdsStr, result) 32 | } 33 | -------------------------------------------------------------------------------- /handles/validate.go: -------------------------------------------------------------------------------- 1 | package handles 2 | 3 | import ( 4 | "github.com/louisevanderlith/droxolite/drx" 5 | "github.com/louisevanderlith/droxolite/mix" 6 | "log" 7 | "net/http" 8 | 9 | "github.com/louisevanderlith/vin/core" 10 | ) 11 | 12 | // @Title Validate 13 | // @Description Attempts to validate the vin 14 | // @Success 200 {bool} bool 15 | // @router /:vin [get] 16 | func Validate(w http.ResponseWriter, r *http.Request) { 17 | vin := drx.FindParam(r, "vin") 18 | err := core.Context().ValidateVIN(vin) 19 | 20 | if err != nil { 21 | log.Println("Validate Error", err) 22 | http.Error(w, "", http.StatusBadRequest) 23 | return 24 | } 25 | 26 | err = mix.Write(w, mix.JSON(true)) 27 | 28 | if err != nil { 29 | log.Println("Serve Error", err) 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /core/manufacturer.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "github.com/louisevanderlith/husk/validation" 5 | ) 6 | 7 | type VehicleType int 8 | 9 | const ( 10 | PassengerCar VehicleType = iota 11 | Motorcycle 12 | Truck 13 | MPV 14 | Trailer 15 | LSV // Low speed vehicle 16 | ATV 17 | Incomplete 18 | ) 19 | 20 | var vehTypes = [...]string{ 21 | "PassengerCar", 22 | "Motorcycle", 23 | "Truck", 24 | "MPV", 25 | "Trailer", 26 | "LSV", 27 | "ATV", 28 | "Incomplete"} 29 | 30 | func (s VehicleType) String() string { 31 | return vehTypes[s] 32 | } 33 | 34 | type Manufacturer struct { 35 | WMICode string 36 | Name string 37 | Description string 38 | VehicleType VehicleType 39 | AssemblyPlants []AssemblyPlant 40 | } 41 | 42 | func (m Manufacturer) Valid() error { 43 | return validation.Struct(m) 44 | } 45 | -------------------------------------------------------------------------------- /lib/lookupapi.dart: -------------------------------------------------------------------------------- 1 | import 'dart:html'; 2 | 3 | import 'package:mango_ui/requester.dart'; 4 | 5 | Future fetchManufacturers(String year) async { 6 | var apiroute = getEndpoint("vin"); 7 | var url = "${apiroute}/lookup/manufacturers/${year}"; 8 | 9 | return invokeService("GET", url, null); 10 | } 11 | 12 | Future fetchModels(String year, String manufacturer) async { 13 | var apiroute = getEndpoint("vin"); 14 | var url = "${apiroute}/lookup/models/${year}/${manufacturer}"; 15 | 16 | return invokeService("GET", url, null); 17 | } 18 | 19 | Future fetchTrims( 20 | String year, String manufacturer, String model) async { 21 | var apiroute = getEndpoint("vin"); 22 | var url = "${apiroute}/lookup/trim/${year}/${manufacturer}/${model}"; 23 | 24 | return invokeService("GET", url, null); 25 | } 26 | -------------------------------------------------------------------------------- /core/lookup.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | func GetManufacturers(year int) (map[string]struct{}, error) { 4 | result := make(map[string]struct{}) 5 | err := ctx.Regions.Map(&result, Manufacturers(year)) 6 | 7 | if err != nil { 8 | return nil, err 9 | } 10 | 11 | return result, nil 12 | } 13 | 14 | func GetModels(year int, manufacturer string) (map[string]struct{}, error) { 15 | result := make(map[string]struct{}) 16 | err := ctx.Regions.Map(&result, Models(year, manufacturer)) 17 | 18 | if err != nil { 19 | return nil, err 20 | } 21 | 22 | return result, nil 23 | } 24 | 25 | func GetTrims(year int, manufacturer, model string) (map[string]struct{}, error) { 26 | result := make(map[string]struct{}) 27 | err := ctx.Regions.Map(&result, Trim(year, manufacturer, model)) 28 | 29 | if err != nil { 30 | return nil, err 31 | } 32 | 33 | return result, nil 34 | } 35 | -------------------------------------------------------------------------------- /core/vds/volvo.go: -------------------------------------------------------------------------------- 1 | package vds 2 | 3 | type VolvoVDS struct { 4 | Model string 5 | } 6 | 7 | func AnalyseVolvo(vds string, obj *VDSInfo) (interface{}, error) { 8 | tmp := new(VolvoVDS) 9 | 10 | macros := make(map[int]func(char string)) 11 | macros[4] = tmp.Position4 12 | //macros[5] = tmp.Position5 13 | //6 - Series? 14 | //macros[7] = tmp.Position7 15 | //macros[8] = tmp.Position8 16 | 17 | for k, v := range vds { 18 | macro, ok := macros[k+4] 19 | 20 | if ok { 21 | macro(string(v)) 22 | } 23 | } 24 | 25 | return tmp, nil 26 | } 27 | 28 | //Vehicle Type 29 | func (v *VolvoVDS) Position4(char string) { 30 | switch char { 31 | case "G": 32 | v.Model = "S70, V70 BI-Fuel" 33 | break 34 | case "J": 35 | v.Model = "V70 BI-Fuel" 36 | break 37 | case "L": 38 | v.Model = "S70, V70, V70XC" 39 | break 40 | case "N": 41 | v.Model = "C70" 42 | break 43 | case "S": 44 | v.Model = "V70, V70XC, CX70" 45 | break 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /core/engine.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "github.com/louisevanderlith/husk/validation" 5 | ) 6 | 7 | type EngineLayout = int 8 | 9 | const ( 10 | Inline EngineLayout = iota 11 | V 12 | Rotary 13 | W 14 | Boxer 15 | ) 16 | 17 | type FuelType = int 18 | 19 | const ( 20 | Petrol FuelType = iota 21 | Diesel 22 | Hybrid 23 | Electric 24 | LPG 25 | ) 26 | 27 | type Induction = int 28 | 29 | const ( 30 | NA Induction = iota 31 | Turbo 32 | Supercharger 33 | ) 34 | 35 | type Engine struct { 36 | Family string 37 | Series string 38 | Code string 39 | Displacement int 40 | FuelType string 41 | Layout string 42 | Cylinders int 43 | Valvetrain string 44 | ValvesPerCylinder int 45 | PowerKW int 46 | PowerAt int 47 | TorqueNm int 48 | TorqueAt int 49 | Induction string 50 | StartYear int 51 | EndYear int 52 | } 53 | 54 | func (m Engine) Valid() error { 55 | return validation.Struct(m) 56 | } 57 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3.7" 2 | 3 | services: 4 | VINDEV: 5 | image: avosa/vin:dev 6 | build: . 7 | environment: 8 | - HOST=${HOST} 9 | depends_on: 10 | - RouterDEV 11 | networks: 12 | - mango_net 13 | volumes: 14 | - ./db/:/db/ 15 | ports: 16 | - "8095:8095" 17 | command: ["./wait-for-it.sh", "RouterDEV:8080", "--", "python", "app.py"] 18 | RouterDEV: 19 | image: avosa/router:dev 20 | environment: 21 | - HOST=${HOST} 22 | ports: 23 | - "8080:8080" 24 | networks: 25 | - mango_net 26 | GateDEV: 27 | image: avosa/gate:dev 28 | environment: 29 | - HOST=${HOST} 30 | ports: 31 | - "80:80" 32 | - "443:443" 33 | networks: 34 | - mango_net 35 | depends_on: 36 | - VINDEV 37 | volumes: 38 | - ../gate/certs:/certs:ro 39 | command: ["./wait-for-it.sh", "VINDEV:8095", "--", "python", "app.py"] 40 | 41 | networks: 42 | mango_net: 43 | driver: bridge 44 | name: mango_net -------------------------------------------------------------------------------- /core/wminfo.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | type WMInfo struct { 8 | Region string 9 | Country string 10 | Manufacturer string 11 | VehicleType string // VehicleType 12 | } 13 | 14 | func FindWMInfo(uniquevin string) (WMInfo, error) { 15 | result := WMInfo{} 16 | 17 | region, err := GetRegionByCode(uniquevin) 18 | 19 | if err != nil { 20 | return result, err 21 | } 22 | 23 | result.Region = region.Name 24 | 25 | regionCode := uniquevin[:1] 26 | countryCode := uniquevin[1:2] 27 | 28 | for i := 0; i < len(region.Countries); i++ { 29 | country := region.Countries[i] 30 | 31 | if country.RegionCode == regionCode && country.HasCode(countryCode) { 32 | result.Country = country.Name 33 | wmi := uniquevin[:3] 34 | 35 | for j := 0; j < len(country.Manufacturers); j++ { 36 | manufacturer := country.Manufacturers[j] 37 | 38 | if strings.HasPrefix(wmi, manufacturer.WMICode) { 39 | result.Manufacturer = manufacturer.Name 40 | result.VehicleType = manufacturer.VehicleType.String() 41 | 42 | break 43 | } 44 | } 45 | 46 | break 47 | } 48 | } 49 | 50 | return result, nil 51 | } 52 | -------------------------------------------------------------------------------- /api/number.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | import ( 4 | "encoding/json" 5 | "fmt" 6 | "github.com/louisevanderlith/husk/hsk" 7 | "github.com/louisevanderlith/husk/records" 8 | "github.com/louisevanderlith/vin/core" 9 | "io/ioutil" 10 | "net/http" 11 | ) 12 | 13 | func ValidateVIN(web *http.Client, host, vin string) (bool, error) { 14 | url := fmt.Sprintf("%s/validate/%s", host, vin) 15 | resp, err := web.Get(url) 16 | 17 | if err != nil { 18 | return false, err 19 | } 20 | 21 | defer resp.Body.Close() 22 | 23 | if resp.StatusCode != http.StatusOK { 24 | bdy, _ := ioutil.ReadAll(resp.Body) 25 | return false, fmt.Errorf("%v: %s", resp.StatusCode, string(bdy)) 26 | } 27 | 28 | result := false 29 | dec := json.NewDecoder(resp.Body) 30 | err = dec.Decode(&result) 31 | 32 | return result, err 33 | } 34 | 35 | func LookupVIN(web *http.Client, host, vin string) (hsk.Record, error) { 36 | url := fmt.Sprintf("%s/lookup/%s", host, vin) 37 | resp, err := web.Get(url) 38 | 39 | if err != nil { 40 | return nil, err 41 | } 42 | 43 | defer resp.Body.Close() 44 | 45 | if resp.StatusCode != http.StatusOK { 46 | bdy, _ := ioutil.ReadAll(resp.Body) 47 | return nil, fmt.Errorf("%v: %s", resp.StatusCode, string(bdy)) 48 | } 49 | 50 | result := records.NewRecord(&core.VIN{}) 51 | dec := json.NewDecoder(resp.Body) 52 | err = dec.Decode(&result) 53 | 54 | return result, err 55 | } 56 | -------------------------------------------------------------------------------- /api/admin.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | import ( 4 | "encoding/json" 5 | "fmt" 6 | "github.com/louisevanderlith/husk/hsk" 7 | "github.com/louisevanderlith/husk/records" 8 | "github.com/louisevanderlith/vin/core" 9 | "io/ioutil" 10 | "net/http" 11 | ) 12 | 13 | func FetchVIN(web *http.Client, host string, k hsk.Key) (core.VIN, error) { 14 | url := fmt.Sprintf("%s/admin/%s", host, k.String()) 15 | resp, err := web.Get(url) 16 | 17 | if err != nil { 18 | return core.VIN{}, err 19 | } 20 | 21 | defer resp.Body.Close() 22 | 23 | if resp.StatusCode != http.StatusOK { 24 | bdy, _ := ioutil.ReadAll(resp.Body) 25 | return core.VIN{}, fmt.Errorf("%v: %s", resp.StatusCode, string(bdy)) 26 | } 27 | 28 | result := core.VIN{} 29 | dec := json.NewDecoder(resp.Body) 30 | err = dec.Decode(&result) 31 | 32 | return result, err 33 | } 34 | 35 | func FetchLatestVINs(web *http.Client, host, pagesize string) (records.Page, error) { 36 | url := fmt.Sprintf("%s/admin/%s", host, pagesize) 37 | resp, err := web.Get(url) 38 | 39 | if err != nil { 40 | return nil, err 41 | } 42 | 43 | defer resp.Body.Close() 44 | 45 | if resp.StatusCode != http.StatusOK { 46 | bdy, _ := ioutil.ReadAll(resp.Body) 47 | return nil, fmt.Errorf("%v: %s", resp.StatusCode, string(bdy)) 48 | } 49 | 50 | result := records.NewResultPage(core.VIN{}) 51 | dec := json.NewDecoder(resp.Body) 52 | err = dec.Decode(&result) 53 | 54 | return result, err 55 | } 56 | -------------------------------------------------------------------------------- /api/region.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | import ( 4 | "encoding/json" 5 | "fmt" 6 | "github.com/louisevanderlith/husk/hsk" 7 | "github.com/louisevanderlith/husk/records" 8 | "github.com/louisevanderlith/vin/core" 9 | "io/ioutil" 10 | "net/http" 11 | ) 12 | 13 | func FetchRegion(web *http.Client, host string, k hsk.Key) (core.Region, error) { 14 | url := fmt.Sprintf("%s/regions/%s", host, k.String()) 15 | resp, err := web.Get(url) 16 | 17 | if err != nil { 18 | return core.Region{}, err 19 | } 20 | 21 | defer resp.Body.Close() 22 | 23 | if resp.StatusCode != http.StatusOK { 24 | bdy, _ := ioutil.ReadAll(resp.Body) 25 | return core.Region{}, fmt.Errorf("%v: %s", resp.StatusCode, string(bdy)) 26 | } 27 | 28 | result := core.Region{} 29 | dec := json.NewDecoder(resp.Body) 30 | err = dec.Decode(&result) 31 | 32 | return result, err 33 | } 34 | 35 | func FetchRegions(web *http.Client, host, pagesize string) (records.Page, error) { 36 | url := fmt.Sprintf("%s/regions/%s", host, pagesize) 37 | resp, err := web.Get(url) 38 | 39 | if err != nil { 40 | return nil, err 41 | } 42 | 43 | defer resp.Body.Close() 44 | 45 | if resp.StatusCode != http.StatusOK { 46 | bdy, _ := ioutil.ReadAll(resp.Body) 47 | return nil, fmt.Errorf("%v: %s", resp.StatusCode, string(bdy)) 48 | } 49 | 50 | result := records.NewResultPage(core.Region{}) 51 | dec := json.NewDecoder(resp.Body) 52 | err = dec.Decode(&result) 53 | 54 | return result, err 55 | } 56 | -------------------------------------------------------------------------------- /handles/admin.go: -------------------------------------------------------------------------------- 1 | package handles 2 | 3 | import ( 4 | "github.com/louisevanderlith/droxolite/drx" 5 | "github.com/louisevanderlith/droxolite/mix" 6 | "github.com/louisevanderlith/husk/keys" 7 | "log" 8 | "net/http" 9 | 10 | "github.com/louisevanderlith/vin/core" 11 | ) 12 | 13 | func GetAdmin(w http.ResponseWriter, r *http.Request) { 14 | results, err := core.Context().GetAllVINS(1, 10) 15 | 16 | if err != nil { 17 | log.Println(err) 18 | http.Error(w, "", http.StatusBadRequest) 19 | return 20 | } 21 | 22 | err = mix.Write(w, mix.JSON(results)) 23 | 24 | if err != nil { 25 | log.Println(err) 26 | } 27 | } 28 | 29 | // /v1/vin/:key 30 | func ViewAdmin(w http.ResponseWriter, r *http.Request) { 31 | k := drx.FindParam(r, "key") 32 | key, err := keys.ParseKey(k) 33 | 34 | if err != nil { 35 | log.Println(err) 36 | http.Error(w, "", http.StatusBadRequest) 37 | return 38 | } 39 | 40 | rec, err := core.Context().GetVIN(key) 41 | 42 | if err != nil { 43 | log.Println(err) 44 | http.Error(w, "", http.StatusNotFound) 45 | return 46 | } 47 | 48 | err = mix.Write(w, mix.JSON(rec)) 49 | 50 | if err != nil { 51 | log.Println(err) 52 | } 53 | } 54 | 55 | // @router /all/:pagesize [get] 56 | func SearchAdmin(w http.ResponseWriter, r *http.Request) { 57 | page, size := drx.GetPageData(r) 58 | results, err := core.Context().GetAllVINS(page, size) 59 | 60 | if err != nil { 61 | log.Println("Get All VINs Error", err) 62 | http.Error(w, "", http.StatusNotFound) 63 | return 64 | } 65 | 66 | err = mix.Write(w, mix.JSON(results)) 67 | 68 | if err != nil { 69 | log.Println("Serve Error", err) 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /core/region.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "github.com/louisevanderlith/husk/hsk" 5 | "github.com/louisevanderlith/husk/op" 6 | "github.com/louisevanderlith/husk/records" 7 | "github.com/louisevanderlith/husk/validation" 8 | "strconv" 9 | ) 10 | 11 | type Region struct { 12 | Name string 13 | StartChar string 14 | EndChar string 15 | Countries []Country 16 | } 17 | 18 | func (m Region) Valid() error { 19 | return validation.Struct(m) 20 | } 21 | 22 | func (r Region) HasCode(regionCode string) bool { 23 | s := getCharWeight(r.StartChar) 24 | e := getCharWeight(r.EndChar) 25 | v := getCharWeight(regionCode) 26 | 27 | return s <= v && v <= e 28 | } 29 | 30 | func GetRegion(key hsk.Key) (Region, error) { 31 | rec, err := ctx.Regions.FindByKey(key) 32 | 33 | if err != nil { 34 | return Region{}, err 35 | } 36 | 37 | return rec.GetValue().(Region), nil 38 | } 39 | 40 | func GetAllRegions(page, size int) (records.Page, error) { 41 | return ctx.Regions.Find(page, size, op.Everything()) 42 | } 43 | 44 | func GetRegionByCode(uniquevin string) (Region, error) { 45 | record, err := ctx.Regions.FindFirst(byUniqueVIN(uniquevin)) 46 | 47 | if err != nil { 48 | return Region{}, err 49 | } 50 | 51 | return record.GetValue().(Region), nil 52 | } 53 | 54 | func getCharWeight(char string) int { 55 | if val, err := strconv.Atoi(char); err == nil { 56 | if val == 0 { 57 | return 36 58 | } 59 | 60 | return val + 26 61 | } 62 | 63 | //Alpha chars will return their index in the alphabet 64 | return int(char[0] % 32) 65 | } 66 | 67 | func (p Region) Update(key hsk.Key) error { 68 | return ctx.Regions.Update(key, p) 69 | } 70 | -------------------------------------------------------------------------------- /api/lookup.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | import ( 4 | "encoding/json" 5 | "fmt" 6 | "io/ioutil" 7 | "net/http" 8 | ) 9 | 10 | func FetchManufacturers(web *http.Client, host string, year int) ([]string, error) { 11 | url := fmt.Sprintf("%s/lookup/manufacturers/%v", host, year) 12 | resp, err := web.Get(url) 13 | 14 | if err != nil { 15 | return nil, err 16 | } 17 | 18 | defer resp.Body.Close() 19 | 20 | if resp.StatusCode != http.StatusOK { 21 | bdy, _ := ioutil.ReadAll(resp.Body) 22 | return nil, fmt.Errorf("%v: %s", resp.StatusCode, string(bdy)) 23 | } 24 | 25 | var result []string 26 | dec := json.NewDecoder(resp.Body) 27 | err = dec.Decode(&result) 28 | 29 | return result, err 30 | } 31 | 32 | func FetchModels(web *http.Client, host string, year int, manufacturer string) ([]string, error) { 33 | url := fmt.Sprintf("%s/lookup/models/%v/%s", host, year, manufacturer) 34 | resp, err := web.Get(url) 35 | 36 | if err != nil { 37 | return nil, err 38 | } 39 | 40 | defer resp.Body.Close() 41 | 42 | if resp.StatusCode != http.StatusOK { 43 | bdy, _ := ioutil.ReadAll(resp.Body) 44 | return nil, fmt.Errorf("%v: %s", resp.StatusCode, string(bdy)) 45 | } 46 | 47 | var result []string 48 | dec := json.NewDecoder(resp.Body) 49 | err = dec.Decode(&result) 50 | 51 | return result, err 52 | } 53 | 54 | func FetchTrims(web *http.Client, host string, year int, manufacturer, model string) ([]string, error) { 55 | url := fmt.Sprintf("%s/lookup/trim/%v/%s/%s", host, year, manufacturer, model) 56 | resp, err := web.Get(url) 57 | 58 | if err != nil { 59 | return nil, err 60 | } 61 | 62 | defer resp.Body.Close() 63 | 64 | if resp.StatusCode != http.StatusOK { 65 | bdy, _ := ioutil.ReadAll(resp.Body) 66 | return nil, fmt.Errorf("%v: %s", resp.StatusCode, string(bdy)) 67 | } 68 | 69 | var result []string 70 | dec := json.NewDecoder(resp.Body) 71 | err = dec.Decode(&result) 72 | 73 | return result, err 74 | } 75 | -------------------------------------------------------------------------------- /core/regioncalc.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "github.com/louisevanderlith/husk/hsk" 5 | ) 6 | 7 | type regionCalc func(result interface{}, obj Region) error 8 | 9 | func (f regionCalc) Map(result interface{}, obj hsk.Record) error { 10 | return f(result, obj.GetValue().(Region)) 11 | } 12 | 13 | func Manufacturers(year int) regionCalc { 14 | return func(result interface{}, obj Region) error { 15 | lst := *(result.(*map[string]struct{})) 16 | 17 | for _, country := range obj.Countries { 18 | for _, manufacturer := range country.Manufacturers { 19 | for _, plant := range manufacturer.AssemblyPlants { 20 | if year >= plant.StartYear && year <= plant.EndYear { 21 | lst[manufacturer.Name] = struct{}{} 22 | } 23 | } 24 | } 25 | } 26 | 27 | result = &lst 28 | 29 | return nil 30 | } 31 | } 32 | 33 | func Models(year int, manufacturerName string) regionCalc { 34 | return func(result interface{}, obj Region) error { 35 | lst := *(result.(*map[string]struct{})) 36 | 37 | for _, country := range obj.Countries { 38 | for _, manufacturer := range country.Manufacturers { 39 | if manufacturer.Name == manufacturerName { 40 | for _, plant := range manufacturer.AssemblyPlants { 41 | if year >= plant.StartYear && year <= plant.EndYear { 42 | for _, series := range plant.Series { 43 | if year >= series.StartYear && year <= series.EndYear { 44 | lst[series.Spec] = struct{}{} 45 | } 46 | } 47 | } 48 | } 49 | } 50 | } 51 | } 52 | 53 | result = &lst 54 | 55 | return nil 56 | } 57 | } 58 | 59 | func Trim(year int, manufacturer, model string) regionCalc { 60 | return func(result interface{}, obj Region) error { 61 | lst := *(result.(*map[string]struct{})) 62 | 63 | /*if obj.Year == year && obj.Series.Manufacturer == manufacturer && obj.Series.Model == model { 64 | lst[obj.Trim] = struct{}{} 65 | }*/ 66 | 67 | result = &lst 68 | 69 | return nil 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /handles/region.go: -------------------------------------------------------------------------------- 1 | package handles 2 | 3 | import ( 4 | "github.com/louisevanderlith/droxolite/drx" 5 | "github.com/louisevanderlith/droxolite/mix" 6 | "github.com/louisevanderlith/husk/keys" 7 | "log" 8 | "net/http" 9 | 10 | "github.com/louisevanderlith/vin/core" 11 | ) 12 | 13 | func GetRegions(w http.ResponseWriter, r *http.Request) { 14 | results, err := core.GetAllRegions(1, 10) 15 | 16 | if err != nil { 17 | log.Println(err) 18 | http.Error(w, "", http.StatusBadRequest) 19 | return 20 | } 21 | 22 | err = mix.Write(w, mix.JSON(results)) 23 | 24 | if err != nil { 25 | log.Println(err) 26 | } 27 | } 28 | 29 | // /v1/region/:key 30 | func ViewRegions(w http.ResponseWriter, r *http.Request) { 31 | k := drx.FindParam(r, "key") 32 | key, err := keys.ParseKey(k) 33 | 34 | if err != nil { 35 | log.Println(err) 36 | http.Error(w, "", http.StatusBadRequest) 37 | return 38 | } 39 | 40 | rec, err := core.GetRegion(key) 41 | 42 | if err != nil { 43 | log.Println(err) 44 | http.Error(w, "", http.StatusNotFound) 45 | return 46 | } 47 | 48 | err = mix.Write(w, mix.JSON(rec)) 49 | 50 | if err != nil { 51 | log.Println(err) 52 | } 53 | } 54 | 55 | // @router /:pagesize/:query== [get] 56 | func SearchRegions(w http.ResponseWriter, r *http.Request) { 57 | page, size := drx.GetPageData(r) 58 | results, err := core.GetAllRegions(page, size) 59 | 60 | if err != nil { 61 | log.Println(err) 62 | http.Error(w, "", http.StatusBadRequest) 63 | return 64 | } 65 | 66 | err = mix.Write(w, mix.JSON(results)) 67 | 68 | if err != nil { 69 | log.Println(err) 70 | } 71 | } 72 | 73 | // @router /v1/region/ [put] 74 | func UpdateRegion(w http.ResponseWriter, r *http.Request) { 75 | key, err := keys.ParseKey(drx.FindParam(r, "key")) 76 | 77 | if err != nil { 78 | log.Println(err) 79 | http.Error(w, "", http.StatusBadRequest) 80 | return 81 | } 82 | 83 | body := &core.Region{} 84 | err = drx.JSONBody(r, body) 85 | 86 | if err != nil { 87 | log.Println(err) 88 | http.Error(w, "", http.StatusBadRequest) 89 | return 90 | } 91 | 92 | err = body.Update(key) 93 | 94 | if err != nil { 95 | log.Println(err) 96 | http.Error(w, "", http.StatusNotFound) 97 | return 98 | } 99 | 100 | err = mix.Write(w, mix.JSON(nil)) 101 | 102 | if err != nil { 103 | log.Println(err) 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /handles/handler.go: -------------------------------------------------------------------------------- 1 | package handles 2 | 3 | import ( 4 | "github.com/gorilla/mux" 5 | "github.com/louisevanderlith/droxolite/open" 6 | "github.com/rs/cors" 7 | "net/http" 8 | ) 9 | 10 | func SetupRoutes(issuer, audience string) http.Handler { 11 | r := mux.NewRouter() 12 | mw := open.BearerMiddleware(audience, issuer) 13 | r.Handle("/lookup/{vin:[A-Z0-9]+}", mw.Handler(http.HandlerFunc(Lookup))).Methods(http.MethodGet) 14 | r.Handle("/lookup/manufacturers/{year:[0-9]+}", mw.Handler(http.HandlerFunc(GetManufacturers))).Methods(http.MethodGet) 15 | r.Handle("/lookup/models/{year:[0-9]+}/{manufacturer:[a-zA-Z]+}", mw.Handler(http.HandlerFunc(GetModels))).Methods(http.MethodGet) 16 | r.Handle("/lookup/trim/{year:[0-9]+}/{manufacturer:[a-zA-Z]+}/{model:[a-zA-Z]+}", mw.Handler(http.HandlerFunc(GetTrims))).Methods(http.MethodGet) 17 | r.Handle("/validate/{vin:[A-Z0-9]+}", mw.Handler(http.HandlerFunc(Validate))).Methods(http.MethodGet) 18 | r.Handle("/regions/{key:[0-9]+\\x60[0-9]+}", mw.Handler(http.HandlerFunc(ViewRegions))).Methods(http.MethodGet) 19 | r.Handle("/regions", mw.Handler(http.HandlerFunc(GetRegions))).Methods(http.MethodGet) 20 | r.Handle("/regions/{pagesize:[A-Z][0-9]+}", mw.Handler(http.HandlerFunc(SearchRegions))).Methods(http.MethodGet) 21 | r.Handle("/regions/{pagesize:[A-Z][0-9]+}/{hash:[a-zA-Z0-9]+={0,2}}", mw.Handler(http.HandlerFunc(SearchRegions))).Methods(http.MethodGet) 22 | r.Handle("/regions/{key:[0-9]+\\x60[0-9]+}", mw.Handler(http.HandlerFunc(UpdateRegion))).Methods(http.MethodPut) 23 | r.Handle("/admin/{key:[0-9]+\\x60[0-9]+}", mw.Handler(http.HandlerFunc(ViewAdmin))).Methods(http.MethodGet) 24 | r.Handle("/admin", mw.Handler(http.HandlerFunc(GetAdmin))).Methods(http.MethodGet) 25 | r.Handle("/admin/{pagesize:[A-Z][0-9]+}", mw.Handler(http.HandlerFunc(SearchAdmin))).Methods(http.MethodGet) 26 | r.Handle("/admin/{pagesize:[A-Z][0-9]+}/{hash:[a-zA-Z0-9]+={0,2}}", mw.Handler(http.HandlerFunc(SearchAdmin))).Methods(http.MethodGet) 27 | 28 | corsOpts := cors.New(cors.Options{ 29 | AllowedOrigins: []string{"*"}, //you service is available and allowed for this base url 30 | AllowedMethods: []string{ 31 | http.MethodGet, 32 | http.MethodPost, 33 | http.MethodDelete, 34 | http.MethodOptions, 35 | http.MethodHead, 36 | }, 37 | AllowCredentials: true, 38 | AllowedHeaders: []string{ 39 | "*", //or you can your header key values which you are using in your application 40 | }, 41 | }) 42 | 43 | return corsOpts.Handler(r) 44 | } 45 | -------------------------------------------------------------------------------- /scripts/engine.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO Engine 2 | VALUES(NOW(), FALSE, 'U', 'U', 'U', 697, 0, 4, 2, '', 2, 21, 0, 53, 0, 0, 1961, 1966), 3 | (NOW(), FALSE, 'U', '2U', '2U', 790, 0, 4, 2, '', 2, 26, 4600, 0, 0, 0, 1965, 1969), 4 | (NOW(), FALSE, 'U', '2U', '2U-B', 790, 0, 4, 2, '', 2, 36, 5400, 0, 0, 1966, 1976), 5 | (NOW(), FALSE, 'U', '2U', '2U-C', 790, 0, 4, 2, '', 2, 29, 5000, 0, 0, 1966, 1976), 6 | (NOW(), FALSE, 'U', '4U', '4U-GSE', 1998, 0, 4, 4, 'DOHC', 4, 149, 7000, 205, 6600, 0, 2012, 0), 7 | (NOW(), FALSE, 'KR', '1KR', '1KR-FE', 966, 0, 0, 3, 'DOHC', 4, 49, 6000, 91, 4800, 0, 2005, 0), 8 | (NOW(), FALSE, 'KR', '1KR', '1KR-DE', 998, 0, 0, 3, 'DOHC', 4, 48, 6000, 85, 3600, 0, 2012, 0), 9 | (NOW(), FALSE, 'KR', '1KR', '1KR-DE2', 998, 0, 0, 3, 'DOHC', 4, 49, 6000, 90, 3600, 0, 2014, 0), 10 | (NOW(), FALSE, 'KR', '1KR', '1KR-VE', 998, 0, 0, 3, 'DOHC', 4, 50, 6000, 91, 4400, 0, 2016, 0), 11 | (NOW(), FALSE, 'Type C', 'Type C', 'Type C', 2259, 0, 0, 4, 'OHV', 2, 36, 0, 112, 1400, 0, 1939, 1941), 12 | (NOW(), FALSE, 'Type S', 'Type S', 'Type S', 995, 0, 0, 4, 'SV', 2, 20, 0, 98, 2400, 0, 1947, 1959), 13 | (NOW(), FALSE, 'R', 'R', 'R', 1453, 0, 0, 4, 'OHV', 2, 45, 4400, 108, 2600, 0, 1953, 1964), 14 | (NOW(), FALSE, 'R', 'R', 'R-LPG', 1453, 4, 0, 4, 'OHV', 2, 45, 4400, 108, 2600, 0, 1962, 1964), 15 | (NOW(), FALSE, 'R', '2R', '2R', 1490, 0, 0, 4, 'OHV', 2, 55, 5000, 116, 2600, 0, 1964, 1969), 16 | (NOW(), FALSE, 'R', '2R', '2R-LPG', 1490, 4, 0, 4, 'OHV', 2, 55, 5000, 116, 2600, 0, 1964, 1969), 17 | (NOW(), FALSE, 'R', '3R', '3R', 1897, 0, 0, 4, 'OHV', 2, 59, 4600, 142, 2600, 0, 1959, 1960), 18 | (NOW(), FALSE, 'R', '3R', '3R', 1897, 0, 0, 4, 'OHV', 2, 66, 5000, 142, 3400, 0, 1960, 1968), 19 | (NOW(), FALSE, 'R', '3R', '3R-B', 1897, 0, 0, 4, 'OHV', 2, 59, 4600, 142, 2600, 0, 1960, 1968), 20 | (NOW(), FALSE, 'R', '3R', '3R-C', 1897, 0, 0, 4, 'OHV', 2, 59, 4600, 142, 2600, 0, 1959, 1968), 21 | (NOW(), FALSE, 'R', '3R', '3R-LPG', 1897, 4, 0, 4, 'OHV', 2, 59, 4600, 142, 2600, 0, 1963, 1968), 22 | (NOW(), FALSE, 'R', '4R', '4R', 1587, 0, 0, 4, 'OHV', 2, 0, 0, 0, 0, 0, 1965, 1968), 23 | (NOW(), FALSE, 'R', '5R', '5R', 1994, 0, 0, 4, 'OHV', 2, 79, 5200, 169, 3000, 0, 1968, 1986), 24 | (NOW(), FALSE, 'R', '5R', '5R-LPG', 1994, 4, 0, 4, 'OHV', 2, 79, 5200, 169, 3000, 0, 1968, 1986), 25 | (NOW(), FALSE, 'R', '6R', '6R', 1707, 0, 0, 4, 'OHV', 2, 80, 5300, 0, 0, 0, 1969, 1974), 26 | (NOW(), FALSE, 'R', '6R', '6R-B', 1707, 0, 0, 4, 'OHV', 2, 80, 5300, 0, 0, 0, 1969, 1974), 27 | (NOW(), FALSE, 'R', '6R', '6R-LPG', 1707, 4, 0, 4, 'OHV', 2, 80, 5300, 0, 0, 0, 1970, 1973), 28 | -------------------------------------------------------------------------------- /scripts/manufacturer.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO Manufacturer 2 | VALUES(NOW(), FALSE, 'Honda Motor Company, Ltd.', 'Honda', 'Japanese auto manufacturer.', 1963, 0, null), 3 | (NOW(), FALSE, 'Toyota Motor Corporation', 'Toyota', 'Japanese multinational automotive manufacturer headquartered in Toyota, Aichi, Japan.', 1937, 0, null), 4 | (NOW(), FALSE, 'Volkswagen', 'Volkswagen', 'German automaker founded on 28 May 1937 by the German Labour Front under Adolf Hitler and headquartered in Wolfsburg.', 1937, 0, null), 5 | (NOW(), FALSE, 'Ford Motor Company', 'Ford', 'American multinational automaker headquartered in Dearborn, Michigan, a suburb of Detroit.', 1903, 0, null), 6 | (NOW(), FALSE, 'Mercedes-Benz', 'Mercedes-Benz', 'Global automobile marque and a division of the German company Daimler AG.', 1926, 0, null), 7 | (NOW(), FALSE, 'Groupe Renault', 'Renault', 'French multinational automobile manufacturer established in 1899.', 1899, 0, null), 8 | (NOW(), FALSE, 'Bavarian Motor Works', 'BMW', 'German multinational company which currently produces automobiles and motorcycles, and also produced aircraft engines until 1945.', 1916, 0, null), 9 | (NOW(), FALSE, 'BMW M GmbH', 'BMW', 'Sub-brand for BMW performance vehicles.', 1972, 0, 7), 10 | (NOW(), FALSE, 'BMW i', 'BMW', 'Sub-brand for BMW electric vehicles.', 2011, 0, 7), 11 | (NOW(), FALSE, 'MINI', 'Mini', 'British automotive marque, owned by BMW', 1959, 0, 7), 12 | (NOW(), FALSE, 'Rolls-Royce Motor Cars Ltd.', 'Rolls-Royce', 'Rolls-Royce Motor Cars Limited is a wholly owned subsidiary of BMW', 1973, 0, 7), 13 | (NOW(), FALSE, 'BMW Motorrad', 'BMW', 'Motorcycle brand owned by BMW', 1923, 0, null), 14 | (NOW(), FALSE, 'Hyundai Motor Company', 'Hyundai', 'South Korean multinational automotive manufacturer headquartered in Seoul, South Korea.', 1967, 0, null), 15 | (NOW(), FALSE, 'Kia Motor Corporation', 'KIA', 'Second-largest automobile manufacturer in South Korea, following the Hyundai Motor Company.', 1944, 0, null), 16 | (NOW(), FALSE, 'Nissan Motor Company Ltd.', 'Nissan', 'Japanese multinational automobile manufacturer headquartered in Nishi-ku, Yokohama.', 1933, 0, null), 17 | (NOW(), FALSE, 'Infiniti', 'Infinity', ' Luxury vehicle division of Japanese automaker Nissan.', 1989, 0, 15), 18 | (NOW(), FALSE, 'Datsun', 'Datsun', 'Low-cost vehicles for emerging markets.', 1931, 0, 15), 19 | (NOW(), FALSE, 'Isuzu Motors Ltd.', 'Isuzu', 'Japanese commercial vehicles and diesel engine manufacturing company headquartered in Tokyo.', 1937, 0, null), 20 | (NOW(), FALSE, 'Mahindra and Mahindra Ltd. (M&M)', 'Mahindra', 'It is one of the largest vehicle manufacturers by production in India and the largest manufacturer of tractors in the world.', 1945, 0, null), 21 | (NOW(), FALSE, 'Great Wall Motors Company Ltd.', 'GWM', 'Chinese automobile manufacturer headquartered in Baoding, Hebei, China.', 1984, 0, null), 22 | (NOW(), FALSE, 'AB Volvo', 'Volvo', 'Swedish multinational manufacturing company headquartered in Gothenburg.', 1927, 0, null) -------------------------------------------------------------------------------- /handles/lookup.go: -------------------------------------------------------------------------------- 1 | package handles 2 | 3 | import ( 4 | "github.com/louisevanderlith/droxolite/drx" 5 | "github.com/louisevanderlith/droxolite/mix" 6 | "github.com/louisevanderlith/husk/records" 7 | "log" 8 | "net/http" 9 | "strconv" 10 | 11 | "github.com/louisevanderlith/vin/core" 12 | ) 13 | 14 | // @Title Validate and Deserialize 15 | // @Description Gets the details of a VIN after validation 16 | // @Success 200 {[]core.Profile} []core.Portfolio] 17 | // @router /:vin [get] 18 | func Lookup(w http.ResponseWriter, r *http.Request) { 19 | vin := drx.FindParam(r, "vin") 20 | err := core.Context().ValidateVIN(vin) 21 | 22 | if err != nil { 23 | log.Println("Validate VIN Error", err) 24 | http.Error(w, "", http.StatusBadRequest) 25 | return 26 | } 27 | 28 | obj, err := core.Context().BuildInfo(vin) 29 | 30 | if err != nil { 31 | log.Println("Build Info Error", err) 32 | http.Error(w, "", http.StatusInternalServerError) 33 | return 34 | } 35 | 36 | item, err := core.Context().FindVIN(vin) 37 | 38 | if err != nil { 39 | k, err := core.Context().CreateVIN(obj) 40 | 41 | if err != nil { 42 | log.Println("Create Error", err) 43 | http.Error(w, "", http.StatusInternalServerError) 44 | return 45 | } 46 | 47 | item = records.MakeRecord(k, obj) 48 | } 49 | 50 | err = mix.Write(w, mix.JSON(item)) 51 | 52 | if err != nil { 53 | log.Println("Serve Error", err) 54 | } 55 | } 56 | 57 | func GetManufacturers(w http.ResponseWriter, r *http.Request) { 58 | year, _ := strconv.Atoi(drx.FindParam(r, "year")) 59 | result, err := core.GetManufacturers(year) 60 | 61 | if err != nil { 62 | log.Println("Get Manufacturers Error", err) 63 | http.Error(w, "", http.StatusInternalServerError) 64 | return 65 | } 66 | 67 | var lst []string 68 | 69 | for name, _ := range result { 70 | lst = append(lst, name) 71 | } 72 | 73 | err = mix.Write(w, mix.JSON(lst)) 74 | 75 | if err != nil { 76 | log.Println("Serve Error", err) 77 | } 78 | } 79 | 80 | func GetModels(w http.ResponseWriter, r *http.Request) { 81 | year, _ := strconv.Atoi(drx.FindParam(r, "year")) 82 | man := drx.FindParam(r, "manufacturer") 83 | 84 | result, err := core.GetModels(year, man) 85 | 86 | if err != nil { 87 | log.Println("Get Models Error", err) 88 | http.Error(w, "", http.StatusInternalServerError) 89 | return 90 | } 91 | 92 | var lst []string 93 | 94 | for name, _ := range result { 95 | lst = append(lst, name) 96 | } 97 | 98 | err = mix.Write(w, mix.JSON(lst)) 99 | 100 | if err != nil { 101 | log.Println(err) 102 | } 103 | } 104 | 105 | func GetTrims(w http.ResponseWriter, r *http.Request) { 106 | year, _ := strconv.Atoi(drx.FindParam(r, "year")) 107 | man := drx.FindParam(r, "manufacturer") 108 | mdl := drx.FindParam(r, "model") 109 | 110 | result, err := core.GetTrims(year, man, mdl) 111 | 112 | if err != nil { 113 | log.Println(err) 114 | http.Error(w, "", http.StatusInternalServerError) 115 | return 116 | } 117 | 118 | var lst []string 119 | 120 | for name, _ := range result { 121 | lst = append(lst, name) 122 | } 123 | 124 | err = mix.Write(w, mix.JSON(lst)) 125 | 126 | if err != nil { 127 | log.Println(err) 128 | } 129 | } 130 | -------------------------------------------------------------------------------- /core/dbcontext.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "encoding/json" 5 | "errors" 6 | "fmt" 7 | "github.com/louisevanderlith/husk" 8 | "github.com/louisevanderlith/husk/collections" 9 | "github.com/louisevanderlith/husk/hsk" 10 | "github.com/louisevanderlith/husk/op" 11 | "github.com/louisevanderlith/husk/records" 12 | "os" 13 | "reflect" 14 | "strings" 15 | ) 16 | 17 | type VINContext interface { 18 | CreateVIN(vin VIN) (hsk.Key, error) 19 | ValidateVIN(fullvin string) error 20 | BuildInfo(fullvin string) (VIN, error) 21 | FindVIN(fullvin string) (hsk.Record, error) 22 | GetVIN(key hsk.Key) (VIN, error) 23 | GetAllVINS(page, size int) (records.Page, error) 24 | } 25 | 26 | func Context() VINContext { 27 | return ctx 28 | } 29 | 30 | func (c context) CreateVIN(m VIN) (hsk.Key, error) { 31 | return c.VIN.Create(m) 32 | } 33 | 34 | //ValidateVIN does exactly what it says. This is the first step in creating a VIN DB Entry. 35 | func (c context) ValidateVIN(fullvin string) error { 36 | if len(fullvin) != 17 { 37 | return errors.New("not correct length") 38 | } 39 | 40 | if strings.ContainsAny(fullvin, "IOQ") { 41 | return errors.New("found illegal characters") 42 | } 43 | 44 | checkDigit := fullvin[8:9] 45 | score := calculateScore(fullvin) 46 | 47 | if checkDigit != score { 48 | return fmt.Errorf("check digit %s is invalid for %s", checkDigit, score) 49 | } 50 | 51 | return nil 52 | } 53 | 54 | //BuildInfo tries to extract information from VIN number 55 | func (c context) BuildInfo(fullvin string) (VIN, error) { 56 | vin, err := newVIN(fullvin) 57 | 58 | if err != nil { 59 | return VIN{}, err 60 | } 61 | 62 | err = vin.deconstruct() 63 | 64 | if err != nil { 65 | return VIN{}, err 66 | } 67 | 68 | return *vin, nil 69 | } 70 | 71 | func (c context) GetVIN(key hsk.Key) (VIN, error) { 72 | rec, err := c.VIN.FindByKey(key) 73 | 74 | if err != nil { 75 | return VIN{}, err 76 | } 77 | 78 | return rec.GetValue().(VIN), nil 79 | } 80 | 81 | func (c context) FindVIN(fullvin string) (hsk.Record, error) { 82 | rec, err := c.VIN.FindFirst(byFullVIN(fullvin)) 83 | 84 | if err != nil { 85 | return nil, err 86 | } 87 | 88 | return rec, nil 89 | } 90 | 91 | func (c context) GetAllVINS(page, size int) (records.Page, error) { 92 | return c.VIN.Find(page, size, op.Everything()) 93 | } 94 | 95 | type context struct { 96 | VIN husk.Table 97 | Regions husk.Table 98 | } 99 | 100 | var ctx context 101 | 102 | func CreateContext() { 103 | ctx = context{ 104 | Regions: husk.NewTable(Region{}), 105 | VIN: husk.NewTable(VIN{}), 106 | } 107 | 108 | seed() 109 | } 110 | 111 | func Shutdown() { 112 | ctx.Regions.Save() 113 | ctx.VIN.Save() 114 | } 115 | 116 | func seed() { 117 | regions, err := regionSeeds() 118 | 119 | if err != nil { 120 | panic(err) 121 | } 122 | 123 | err = ctx.Regions.Seed(regions) 124 | 125 | if err != nil { 126 | panic(err) 127 | } 128 | } 129 | 130 | func regionSeeds() (collections.Enumerable, error) { 131 | f, err := os.Open("db/regions.seed.json") 132 | 133 | if err != nil { 134 | return nil, err 135 | } 136 | 137 | var items []Region 138 | dec := json.NewDecoder(f) 139 | err = dec.Decode(&items) 140 | 141 | if err != nil { 142 | return nil, err 143 | } 144 | 145 | return collections.ReadOnlyList(reflect.ValueOf(items)), nil 146 | } 147 | -------------------------------------------------------------------------------- /core/vin.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "errors" 5 | "github.com/louisevanderlith/husk/validation" 6 | "strconv" 7 | "time" 8 | 9 | "github.com/louisevanderlith/vin/core/vds" 10 | ) 11 | 12 | //VIN is the key to the entire vehicle database. 13 | type VIN struct { 14 | Full string `hsk:"size(17)"` 15 | Unique string `hsk:"min(2)"` 16 | Serial int 17 | WMInfo WMInfo 18 | VDSInfo vds.VDSInfo 19 | } 20 | 21 | func newVIN(fullvin string) (*VIN, error) { 22 | vin := &VIN{ 23 | Full: fullvin, 24 | } 25 | 26 | err := vin.deconstruct() 27 | 28 | if err != nil { 29 | return nil, err 30 | } 31 | 32 | return vin, nil 33 | } 34 | 35 | //Valid checks if the object's values meets the data requirements 36 | func (m VIN) Valid() error { 37 | return validation.Struct(m) 38 | } 39 | 40 | //deconstruct will attempt to populate as much detail as possible for the given VIN 41 | func (m *VIN) deconstruct() error { 42 | m.Unique, m.Serial = getUniqueSerial(m.Full) 43 | wmiInfo, err := FindWMInfo(m.Unique) 44 | 45 | if err != nil { 46 | return err 47 | } 48 | 49 | m.WMInfo = wmiInfo 50 | 51 | //Get Year 52 | years, err := manufactureYear(m.Full[9:10]) 53 | 54 | if err != nil { 55 | return err 56 | } 57 | 58 | //Get VDS 59 | _, err = vds.FindVDSInfo(wmiInfo.Manufacturer, m.Unique, years) 60 | 61 | if err != nil { 62 | return err 63 | } 64 | 65 | //m.VDSInfo = vds 66 | 67 | return nil 68 | } 69 | 70 | func getUniqueSerial(fullvin string) (string, int) { 71 | serial, _ := strconv.Atoi(fullvin[11:]) 72 | return fullvin[:11], serial 73 | } 74 | 75 | func calculateScore(fullvin string) string { 76 | result := 0 77 | 78 | digitMap := getCharacterMap() 79 | weights := []int{8, 7, 6, 5, 4, 3, 2, 10, 0, 9, 8, 7, 6, 5, 4, 3, 2} 80 | 81 | for k, v := range fullvin { 82 | value := 0 83 | strVal := string(v) 84 | value, ok := digitMap[strVal] 85 | 86 | //If the character is not found, it's a digit. 87 | if !ok { 88 | val, err := strconv.Atoi(strVal) 89 | 90 | if err != nil { 91 | panic(err) 92 | } 93 | 94 | value = val 95 | } 96 | 97 | result += value * weights[k] 98 | } 99 | 100 | mod := result % 11 101 | 102 | if mod == 10 { 103 | return "X" 104 | } 105 | 106 | return strconv.Itoa(mod) 107 | } 108 | 109 | func getCharacterMap() map[string]int { 110 | digitMap := make(map[string]int) 111 | digitMap["A"] = 1 112 | digitMap["B"] = 2 113 | digitMap["C"] = 3 114 | digitMap["D"] = 4 115 | digitMap["E"] = 5 116 | digitMap["F"] = 6 117 | digitMap["G"] = 7 118 | digitMap["H"] = 8 119 | digitMap["J"] = 1 120 | digitMap["K"] = 2 121 | digitMap["L"] = 3 122 | digitMap["M"] = 4 123 | digitMap["N"] = 5 124 | digitMap["P"] = 7 125 | digitMap["R"] = 9 126 | digitMap["S"] = 2 127 | digitMap["T"] = 3 128 | digitMap["U"] = 4 129 | digitMap["V"] = 5 130 | digitMap["W"] = 6 131 | digitMap["X"] = 7 132 | digitMap["Y"] = 8 133 | digitMap["Z"] = 9 134 | 135 | return digitMap 136 | } 137 | 138 | func manufactureYear(digit string) ([]int, error) { 139 | charWeight := getCharWeight(digit) 140 | 141 | if charWeight == 0 { 142 | return nil, errors.New("unable to get a weight") 143 | } 144 | 145 | var result []int 146 | 147 | //VIN Characters are reset every 30years 148 | years := []int{1980, 2010} 149 | maxYear := time.Now().Year() 150 | 151 | for _, v := range years { 152 | year := v + charWeight 153 | 154 | if year < maxYear { 155 | result = append(result, year) 156 | } 157 | } 158 | 159 | return result, nil 160 | } 161 | 162 | /* 163 | func doesVINExist(fullvin string) (hsk.Record, bool) { 164 | result, err := ctx.Vehicles.FindFirst(byFullVIN(fullvin)) 165 | 166 | if err != nil { 167 | return nil, false 168 | } 169 | 170 | return result, true 171 | } 172 | */ 173 | -------------------------------------------------------------------------------- /cmd/vin_test.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/louisevanderlith/vin/core" 5 | "log" 6 | "testing" 7 | ) 8 | 9 | //Audi -- WAUZZZ8E88A025765 10 | //Chev -- KL1MJ68036C084769 11 | //Hyundai -- "KNHCU41DLCU177882 12 | //Mustang -- 1ZVHT82H485113456 13 | //Hyundai 2 --5NPEU46F77H259112 14 | //Toyota -- JT152EEA100302159 15 | 16 | //This is expectected from every test. 17 | var expectations = core.VIN{ 18 | Full: "5NPEU46F77H259112", 19 | Unique: "5NPEU46F77H", 20 | Serial: 259112, 21 | WMInfo: core.WMInfo{ 22 | Country: "United States", 23 | Manufacturer: "Hyundai", 24 | VehicleType: "PassengerCar", 25 | Region: "North America", 26 | }, 27 | } 28 | 29 | func init() { 30 | core.CreateContext() 31 | } 32 | 33 | func TestVIN_JustPrint(t *testing.T) { 34 | obj, err := core.Context().BuildInfo(expectations.Full) 35 | 36 | if err != nil { 37 | t.Error(err) 38 | } 39 | 40 | t.Log(obj) 41 | 42 | t.Fail() 43 | } 44 | 45 | func TestVIN_IsValid(t *testing.T) { 46 | in := "5NPEU46F77H259112" 47 | err := core.Context().ValidateVIN(in) 48 | 49 | if err != nil { 50 | t.Error(err) 51 | } 52 | } 53 | 54 | func TestVIN_NotValid(t *testing.T) { 55 | in := "5NBEU46F77H259112" 56 | err := core.Context().ValidateVIN(in) 57 | 58 | if err == nil { 59 | t.Error("Expecting error") 60 | } 61 | } 62 | 63 | func TestVIN_NoIOQ(t *testing.T) { 64 | in := "5NBEU46F77H259Q12" 65 | err := core.Context().ValidateVIN(in) 66 | 67 | if err == nil { 68 | t.Error("Expecting error") 69 | } 70 | } 71 | 72 | func TestDeconstruct_UniqueSerial_SerialCorrect(t *testing.T) { 73 | obj, err := core.Context().BuildInfo(expectations.Full) 74 | 75 | if err != nil { 76 | t.Error(err) 77 | } 78 | 79 | if obj.Serial != expectations.Serial { 80 | t.Errorf("expected %v, got %v", expectations.Serial, obj.Serial) 81 | } 82 | } 83 | 84 | func TestDeconstruct_UniqueSerial_UniqueCorrect(t *testing.T) { 85 | obj, err := core.Context().BuildInfo(expectations.Full) 86 | 87 | if err != nil { 88 | t.Error(err) 89 | } 90 | 91 | if obj.Unique != expectations.Unique { 92 | t.Errorf("expected %s, got %s", expectations.Unique, obj.Unique) 93 | } 94 | } 95 | 96 | func TestDeconstruct_WMI_ManufacturerCorrect(t *testing.T) { 97 | obj, err := core.Context().BuildInfo(expectations.Full) 98 | 99 | if err != nil { 100 | t.Error(err) 101 | } 102 | 103 | if obj.WMInfo.Manufacturer != expectations.WMInfo.Manufacturer { 104 | t.Errorf("expected %v, got %v", expectations.WMInfo.Manufacturer, obj.WMInfo.Manufacturer) 105 | } 106 | } 107 | 108 | func TestDeconstruct_WMI_CountryCorrect(t *testing.T) { 109 | obj, err := core.Context().BuildInfo(expectations.Full) 110 | 111 | if err != nil { 112 | t.Error(err) 113 | } 114 | 115 | if obj.WMInfo.Country != expectations.WMInfo.Country { 116 | t.Errorf("expected %v, got %v", expectations.WMInfo.Country, obj.WMInfo.Country) 117 | } 118 | } 119 | 120 | func TestDeconstruct_WMI_VehicleTypeCorrect(t *testing.T) { 121 | obj, err := core.Context().BuildInfo(expectations.Full) 122 | 123 | if err != nil { 124 | t.Error(err) 125 | } 126 | 127 | if obj.WMInfo.VehicleType != expectations.WMInfo.VehicleType { 128 | t.Errorf("expected %v, got %v", expectations.WMInfo.VehicleType, obj.WMInfo.VehicleType) 129 | } 130 | } 131 | 132 | func TestDeconstruct_WMI_RegionCorrect(t *testing.T) { 133 | obj, err := core.Context().BuildInfo(expectations.Full) 134 | 135 | if err != nil { 136 | t.Error(err) 137 | } 138 | 139 | if obj.WMInfo.Region != expectations.WMInfo.Region { 140 | t.Errorf("expected %v, got %v", expectations.WMInfo.Region, obj.WMInfo.Region) 141 | } 142 | } 143 | 144 | func TestDeconstruct_VDS_Toyota(t *testing.T) { 145 | obj, err := core.Context().BuildInfo("JT2MX83E2K0030681") 146 | 147 | if err != nil { 148 | t.Error(err) 149 | } 150 | 151 | log.Println(obj) 152 | t.Fail() 153 | //FINISH 154 | } 155 | -------------------------------------------------------------------------------- /scripts/assemblyplant.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO AssemblyPlant 2 | VALUES(NOW(), FALSE, 'A', 1, 'Marysville, Ohio', 'USA', 1963, 0), 3 | (NOW(), FALSE, 'B', 1, 'Lincoln, Alabama', 'USA', 1963, 0), 4 | (NOW(), FALSE, 'C', 1, 'Sayama, Saitama', 'Japan', 1963, 0), 5 | (NOW(), FALSE, 'E', 1, 'Greensburg, Indiana', 'USA', 1963, 0), 6 | (NOW(), FALSE, 'G', 1, 'El Salto, Jalisco', 'Mexico', 1963, 0), 7 | (NOW(), FALSE, 'H', 1, 'Alliston, Ontario', 'Canada', 1963, 0), 8 | (NOW(), FALSE, 'L', 1, 'East Liberty, Ohio', 'USA', 1963, 0), 9 | (NOW(), FALSE, 'M', 1, 'Celaya, Guanajuato', 'Mexico', 1963, 0), 10 | (NOW(), FALSE, 'P', 1, 'Ayutthaya', 'Thailand', 1963, 0), 11 | (NOW(), FALSE, 'S', 1, 'Suzuka, Mie', 'Japan', 1963, 0), 12 | (NOW(), FALSE, 'T', 1, 'Utsunomiya, Tochigi', 'Japan', 1963, 0), 13 | (NOW(), FALSE, 'U', 1, 'Swindon, Wiltshire', 'U.K.', 1963, 0), 14 | 15 | (NOW(), FALSE, 'A', 3, 'Ingolstadt','Germany', 1937, 0), 16 | (NOW(), FALSE, 'B', 3, 'Brussels', 'Belgium', 1937, 0), 17 | (NOW(), FALSE, 'C', 3, 'Chattanooga', 'USA', 1937, 0), 18 | (NOW(), FALSE, 'D', 3, 'Bratislava', 'Slovakia', 1937, 0), 19 | (NOW(), FALSE, 'E', 3, 'Emden', 'Germany', 1937, 0), 20 | (NOW(), FALSE, 'F', 3, 'Ipiranga/Resende', 'Brazil', 1937, 0), 21 | (NOW(), FALSE, 'G', 3, 'Graz', 'Austria', 1937, 0), 22 | (NOW(), FALSE, 'H', 3, 'Hanover', 'Germany', 1937, 0), 23 | (NOW(), FALSE, 'K', 3, 'Osnabrück', 'Germany', 1937, 0), 24 | (NOW(), FALSE, 'L', 3, 'Lagos', 'Nigeria', 1937, 0), 25 | (NOW(), FALSE, 'M', 3, 'Puebla', 'Mexico', 1937, 0), 26 | (NOW(), FALSE, 'N', 3, 'Neckarsulm', 'Germany', 1937, 0), 27 | (NOW(), FALSE, 'P', 3, 'Mosel', 'Germany', 1937, 0), 28 | (NOW(), FALSE, 'P', 3, 'Anchieta', 'Brazil', 1937, 0), 29 | (NOW(), FALSE, 'R', 3, 'Martorell', 'Spain', 1937, 0), 30 | (NOW(), FALSE, 'S', 3, 'Salzgitter', 'Germany', 1937, 0), 31 | (NOW(), FALSE, 'T', 3, 'Sarajevo', 'Yugoslavia', 1937, 1994), 32 | (NOW(), FALSE, 'T', 3, 'Taubaté', 'Brazil', 1994, 0), 33 | (NOW(), FALSE, 'V', 3, 'Westmoreland', 'USA', 1937, 1994), 34 | (NOW(), FALSE, 'V', 3, 'Palmela', 'Portugal', 1994, 0), 35 | (NOW(), FALSE, 'U', 3, 'Uitenhage', 'South Africa', 1937, 0), 36 | (NOW(), FALSE, 'W', 3, 'Wolfsburg', 'Germany', 1937, 0), 37 | (NOW(), FALSE, 'X', 3, 'Poznan', 'Poland', 1937, 0), 38 | (NOW(), FALSE, 'Y', 3, 'Pamplona', 'Spain', 1937, 0), 39 | (NOW(), FALSE, '1', 3, 'Győr', 'Hungary', 1937, 0), 40 | (NOW(), FALSE, '2', 3, 'Anting', 'China', 1937, 0), 41 | (NOW(), FALSE, '3', 3, 'Changchun', 'China', 1937, 0), 42 | (NOW(), FALSE, '4', 3, 'Curitiba', 'Brazil', 1937, 0), 43 | (NOW(), FALSE, '6', 3, 'Düsseldorf', 'Germany', 1937, 0), 44 | (NOW(), FALSE, '7', 3, 'Ludwigsfelde', 'Germany', 1937, 0), 45 | (NOW(), FALSE, '8', 3, 'Dresden', 'Germany', 1937, 0), 46 | (NOW(), FALSE, '8', 3, 'General Pacheco', 'Argentina', 1937, 0), 47 | 48 | (NOW(), FALSE, '0', 21, 'Kalmar Plant', 'Sweden', 1927, 0), 49 | (NOW(), FALSE, '1', 21, 'Torslanda Plant VCT 21(Volvo Torslandaverken) (Gothenburg)', 'Sweden', 1927, 0), 50 | (NOW(), FALSE, '2', 21, 'Ghent Plant VCG 22', 'Belgium', 1927, 0), 51 | (NOW(), FALSE, '3', 21, 'Halifax Plant', 'Canada', 1927, 0), 52 | (NOW(), FALSE, '4', 21, 'Bertone models 240', 'Italy', 1927, 0), 53 | (NOW(), FALSE, '5', 21, '', 'Malaysia', 1927, 0), 54 | (NOW(), FALSE, '6', 21, '', 'Australia', 1927, 0), 55 | (NOW(), FALSE, '7', 21, '', 'Indonesia', 1927, 0), 56 | (NOW(), FALSE, 'A', 21, 'Uddevalla Plant (Volvo Cars/TWR (Tom Walkinshaw Racing))', 'Sweden', 1927, 0), 57 | (NOW(), FALSE, 'B', 21, 'Bertone Chongq 31', 'Italy', 1927, 0), 58 | (NOW(), FALSE, 'D', 21, 'Bertone models 780', 'Italy', 1927, 0), 59 | (NOW(), FALSE, 'E', 21, '', 'Singapore', 1927, 0), 60 | (NOW(), FALSE, 'F', 21, 'Born Plant (NEDCAR)', 'The Netherlands', 1927, 0), 61 | (NOW(), FALSE, 'J', 21, 'Uddevalla Plant, VCU 38 (Volvo Cars/ Pininfarina Sverige AB)', 'Sweden', 1927, 0), 62 | (NOW(), FALSE, 'M', 21, 'PVÖ 53', '', 1927, 0), 63 | 64 | -------------------------------------------------------------------------------- /core/vds/bmw.go: -------------------------------------------------------------------------------- 1 | package vds 2 | 3 | type BMWVDS struct { 4 | VDSInfo 5 | } 6 | 7 | func AnalyseBMW(vin string, obj *VDSInfo) (interface{}, error) { 8 | return nil, nil 9 | } 10 | 11 | //4-7 Model 12 | //8 Restraint 13 | /* 14 | A = automatic 15 | C = convertible 16 | CS = coupe sport 17 | i = injection; international 18 | e = ETA (high mpg, high torque, low RPM) engine 19 | L = long-wheelbase; luxury 20 | M = Motorsport 21 | s = sport; also used to denote coupe body in NA markets 22 | t = touring; touring could equate to hatchback, wagon, or 23 | 24 | td = turbodiesel 25 | tds = intercooled turbodiesel 26 | X = four-wheel drive 27 | Z = models developed by BMW Technik; new roadster designation 28 | */ 29 | 30 | /* 31 | 32 | VDS Car Body Engine FI MY range 33 | ---------------------------------------------------- 34 | ? 540iA E34 M60/B40 M3.3 1993- 35 | ? 540i E34 M60/B40 M3.3 1995- 36 | AA13 325is E30 M20/B25 M1.1 1987-88 37 | AA13 325is E30 M20/B25 M1.3 1989-91 38 | AA23 325isA E30 M20/B25 M1.1 1987-88 39 | AA23 325isA E30 M20/B25 M1.3 1989-91 40 | AB03 325iXA E30/16 M20/B25 M1.3 1989-91 41 | AB54 325 E30 M20/B27 M1.1 1988 42 | AB54 325e(s) E30 M20/B27 Basic 1984-7 43 | AB64 325A E30 M20/B27 M1.1 1988 44 | AB64 325e(s)A E30 M20/B27 Basic 1984-7 45 | AB93 325iX E30/16 M20/B25 M1.1 1988 46 | AB93 325iX E30/16 M20/B25 M1.3 1989-91 47 | AC74 318i/4 E30 M10/B18 L-Jetronic 1985 48 | AC84 318iA/4 E30 M10/B18 L-Jetronic 1985 49 | AD13 325i/4 E30 M20/B25 M1.1 1987-88 50 | AD13 325i/4 E30 M20/B25 M1.3 1989-91 51 | AD23 325iA/4 E30 M20/B25 M1.1 1987-88 52 | AD23 325iA/4 E30 M20/B25 M1.3 1989-91 53 | AE03 325iXA/4 E30/16 M20/B25 M1.1 1988 54 | AE03 325iXA/4 E30/16 M20/B25 M1.3 1989-91 55 | AE54 325/4 E30 M20/B27 M1.1 1988 56 | AE54 325e/4 E30 M20/B27 Basic 1984-7 57 | AE64 325A/4 E30 M20/B27 M1.1 1988 58 | AE64 325eA/4 E30 M20/B27 Basic 1984-7 59 | AE93 325iX/4 E30/16 M20/B25 M1.1 1988 60 | AE93 325iX/4 E30/16 M20/B25 M1.3 1989-91 61 | AF93 318is E30 M42/B18 M1.7 1990-1 62 | AG33 320i(s) E21 M10/B20 K-Lambda 1980-3 63 | AG43 320iA E21 M10/B20 K-Lambda 1980-3 64 | AH31 323i EURO E21 ? ? ? 65 | AH41 323iA EURO E21 ? ? ? 66 | AJ93 318i/4 E30 M42/B18 M1.7 1990-1 67 | AK03 M3 E30 S14/B23 Motorsport 1988-91 68 | AK74 318i E30 M10/B18 L-Jetronic 1984-5 69 | AK84 318iA E30 M10/B18 L-Jetronic 1984-5 70 | BA73 318iC E30 M42/B18 M1.7 1991-2 71 | BB13 325iC E30 M20/B25 M1.1 1987-88 72 | BB13 325iC E30 M20/B25 M1.3 1989-93 73 | BB23 325iCA E30 M20/B25 M1.1 1987-88 74 | BB23 325iCA E30 M20/B25 M1.3 1989-92 75 | BE53 318is E36 M42/B18 M1.7 1992-3 76 | BE53 318is E36 M42/B18 M1.7.2 1994- 77 | BE63 318isA E36 M42/B18 M1.7 1993 78 | BE63 318isA E36 M42/B18 M1.7.2 1994- 79 | BF33 325is E36 M50/B25 M3.1 1992 80 | BF33 325is E36 M50TU/B25 M3.3.1 1993- 81 | BF43 325isA E36 M50/B25 M3.1 1992 82 | BF43 325isA E36 M50TU/B25 M3.3.1 1993- 83 | BF93 M3 E36 S50US/B30 M3.3.1 1995- 84 | BJ53 325iC E36 M50TU/B25 M3.3.1 1994- 85 | BJ63 325iCA E36 M50TU/B25 M3.3.1 1994- 86 | CA53 318i E36 M42/B18 M1.7 1992-3 87 | CA53 318i E36 M42/B18 M1.7.2 1994- 88 | CA63 318iA E36 M42/B18 M1.7 1993 89 | CA63 318iA E36 M42/B18 M1.7.2 1994- 90 | CB33 325i E36 M50/B25 M3.1 1992 91 | CB33 325i E36 M50TU/B25 M3.3.1 1993- 92 | CB43 325iA E36 M50/B25 M3.1 1992 93 | CB43 325iA E36 M50TU/B25 M3.3.1 1993- 94 | CJ95 528i E12 ? L-Jetronic 1980-1 95 | CJ97 528iA E12 ? L-Jetronic 1980-1 96 | DB24 524tdA E28 ? DDE 1985-6 97 | DB74 533i E28 M30/B32 Basic 1983-4 98 | DB84 533iA E28 M30/B32 Basic 1983-4 99 | DC71 M535i EURO E28 ? ? ? 100 | DC74 535i(s) E28 M30/B34 Adaptive 1985-8 101 | DC81 M535iA EURO E28 ? ? ? 102 | DC84 535i(s)A E28 M30/B34 Adaptive 1985-8 103 | DC93 M5 E28 S38/B35 Motorsport 1988 104 | DK73 528e E28 M20/B27 M1.1 1988 105 | DK73 528e E28 M20/B27 Basic 1982-7 106 | DK83 528eA E28 M20/B27 M1.1 1988 107 | DK83 528eA E28 M20/B27 Basic 1982-7 108 | EB35 633CSi E24 M30/B32 L-Jetronic 1980-1 109 | EB36 633CSi E24 M30/B32 Basic 1982 110 | EB45 633CSiA E24 M30/B32 L-Jetronic 1980-1 111 | EB46 633CSiA E24 M30/B32 Basic 1982 112 | EB74 633CSi E24 M30/B32 Basic 1983-4 113 | EB84 633CSiA E24 M30/B32 Basic 1983-4 114 | EC74 635CSi E24 M30/B35 M1.1 1988 115 | EC74 635CSi E24 M30/B35 M1.3 1989 116 | EC74 635CSi E24 M30/B34 Adaptive 1985-7 117 | EC84 L6 E24 M30/B34 Adaptive 1987 118 | EC84 635CSiA E24 M30/B35 M1.1 1988 119 | EC84 635CSiA E24 M30/B35 M1.3 1989 120 | EC84 635CSiA E24 M30/B34 Adaptive 1985-7 121 | EE14 M6 E24 S38/B35 Motorsport 1987-8 122 | EE81 M635 EURO E24 ? ? ? 123 | EG13 850i E31 M70/B50 M1.7 1991-2 124 | EG13 850Ci E31 M70/B50 M1.7 1993- 125 | EG23 850iA E31 M70/B50 M1.7 1991-2 126 | EG23 850CiA E31 M70/B50 M1.7 1993- 127 | FF33 733i E23 M30/B32 L-Jetronic 1980-1 128 | FF34 733i E23 M30/B32 Basic 1982 129 | FF43 733iA E23 M30/B32 L-Jetronic 1980-1 130 | FF44 733iA E23 M30/B32 Basic 1982 131 | FF74 733i E23 M30/B32 Basic 1983-4 132 | FF84 733iA E23 M30/B32 Basic 1983-4 133 | FG24 L7 E23 M30/B34 Adaptive 1986-7 134 | FH74 735i E23 M30/B34 Adaptive 1985-6 135 | FH84 735iA E23 M30/B34 Adaptive 1985-7 136 | GB33 735i E32 M30/B35 M1.1 1988 137 | GB33 735i E32 M30/B35 M1.3 1989 138 | GB43 735iA E32 M30/B35 M1.1 1988 139 | GB43 735iA E32 M30/B35 M1.3 1989-92 140 | GC43 735iLA E32/2 M30/B35 M1.1 1988 141 | GC43 735iLA E32/2 M30/B35 M1.3 1989-92 142 | GC83 750iLA E32/2 M70/B50 M1.2 1988-90 143 | GC83 750iLA E32/2 M70/B50 M1.7 1991-94 144 | GD43 740iA E32 M60/B40 M3.3 1993-4 145 | GD83 740iLA E32/2 M60/B40 M3.3 1993-4 146 | HC13 525i E34 M20/B25 M1.3 1989-90 147 | HC23 525iA E34 M20/B25 M1.3 1989-90 148 | HD13 535i E34 M30/B35 M1.3 1989-93 149 | HD23 535iA E34 M30/B35 M1.3 1989-93 150 | HD53 525i E34 M50/B25 M3.1 1991 151 | HD53 525i E34 M50TU/B25 M3.3.1 1992- 152 | HD63 525iA E34 M50/B25 M3.1 1991 153 | HD63 525iA E34 M50TU/B25 M3.3.1 1992- 154 | HD93 M5 E34 S38/B36 M1.2 1991-3 155 | HE13 530i E34 M60/B30 M3.3 1993- 156 | HE23 530iA E34 M60/B30 M3.3 1993- 157 | HJ63 525iTA E34/2 M50TU/B25 M3.3.1 1992- 158 | HK23 530iTA E34/2 M60/B30 M3.3 1993- 159 | */ 160 | -------------------------------------------------------------------------------- /core/vds/toyota.go: -------------------------------------------------------------------------------- 1 | package vds 2 | 3 | type ToyotaVDS struct { 4 | Doors int 5 | BodyStyle string 6 | DriveTrain string 7 | EngineModel string 8 | Safety string 9 | Model string 10 | Platform string 11 | } 12 | 13 | func AnalyseToyota(vds string, obj *VDSInfo) (interface{}, error) { 14 | tmp := new(ToyotaVDS) 15 | 16 | macros := make(map[int]func(char string)) 17 | macros[4] = tmp.Position4 18 | macros[5] = tmp.Position5 19 | //6 - Series? 20 | macros[7] = tmp.Position7 21 | macros[8] = tmp.Position8 22 | 23 | for k, v := range vds { 24 | macro, ok := macros[k+4] 25 | 26 | if ok { 27 | macro(string(v)) 28 | } 29 | } 30 | 31 | return tmp, nil 32 | } 33 | 34 | //Body Type 35 | func (v *ToyotaVDS) Position4(char string) { 36 | switch char { 37 | case "A": 38 | v.Doors = 2 39 | v.BodyStyle = "Sedan" 40 | v.DriveTrain = "2WD" 41 | //A/2DR sedan 2WD, 42 | break 43 | case "B": 44 | v.Doors = 4 45 | v.BodyStyle = "Sedan" 46 | v.DriveTrain = "2WD" 47 | //B/4DR sedan 2WD or 4DR truck 4WD, 48 | break 49 | case "C": 50 | v.Doors = 2 51 | v.BodyStyle = "Coupe" 52 | v.DriveTrain = "2WD" 53 | //C/2DR coupe 2WD, 54 | break 55 | case "D": 56 | v.Doors = 4 57 | v.BodyStyle = "Truck" 58 | v.DriveTrain = "4WD" 59 | //D/4DR truck 4WD, 60 | break 61 | case "E": 62 | v.Doors = 4 63 | v.BodyStyle = "Truck" 64 | v.DriveTrain = "2WD" 65 | //E/4DR truck 2WD, 66 | break 67 | case "G": 68 | v.Doors = 4 69 | v.BodyStyle = "Wagon" 70 | v.DriveTrain = "2WD" 71 | //G/4DR wagon 2WD, 72 | break 73 | case "H": 74 | v.Doors = 4 75 | v.BodyStyle = "Wagon" 76 | v.DriveTrain = "4WD" 77 | //H/4DR wagon 4WD, 78 | break 79 | case "K": 80 | v.Doors = 4 81 | v.BodyStyle = "Wagon" 82 | v.DriveTrain = "2WD" 83 | //K/4DR wagon 2WD, 84 | break 85 | case "L": 86 | v.Doors = 4 87 | v.BodyStyle = "Wagon" 88 | v.DriveTrain = "4WD" 89 | //L/4DR wagon 4WD or 4DR truck 4WD, 90 | break 91 | case "M": 92 | v.Doors = 5 93 | v.BodyStyle = "Van" 94 | v.DriveTrain = "2WD" 95 | //M/5DR van 2WD, 96 | break 97 | case "N": 98 | v.Doors = 2 99 | v.BodyStyle = "Regular Cab" 100 | v.DriveTrain = "2WD" 101 | //N/2DR regular cab truck 2WD, 102 | break 103 | case "P": 104 | v.Doors = 2 105 | v.BodyStyle = "Regular Cab" 106 | v.DriveTrain = "4WD" 107 | //P/2DR regular cab truck 4WD, 108 | break 109 | case "S": 110 | v.Doors = 3 111 | v.BodyStyle = "Extended Cab" 112 | v.DriveTrain = "4WD" 113 | //S/3DR liftback 4WD, 114 | break 115 | case "T": 116 | v.Doors = 2 117 | v.BodyStyle = "Extended Cab" 118 | v.DriveTrain = "2WD" 119 | //T/2DR extended cab truck 2WD, 120 | break 121 | case "X": 122 | v.Doors = 5 123 | v.BodyStyle = "SUV" 124 | //X/5DR SUV, 125 | break 126 | case "W": 127 | v.Doors = 2 128 | v.BodyStyle = "Extended Cab" 129 | v.DriveTrain = "4WD" 130 | //W/2DR extended cab 4WD, 131 | break 132 | case "Y": 133 | v.BodyStyle = "Sport Van" 134 | //Y/sport van and 135 | break 136 | case "Z": 137 | v.Doors = 5 138 | v.BodyStyle = "Wagon" 139 | v.DriveTrain = "2WD" 140 | //Z/5DR wagon 2WD. 141 | break 142 | } 143 | } 144 | 145 | //Engine 146 | func (v *ToyotaVDS) Position5(char string) { 147 | switch char { 148 | case "4": 149 | v.EngineModel = "7A-FE" 150 | //4/7A-FE Lean Burn; 151 | break 152 | case "A": 153 | v.EngineModel = "3MZ-FE" 154 | //A/3MZ-FE; 155 | break 156 | case "B": 157 | v.EngineModel = "1NZ-FXE" 158 | //B/1NZ-FXE or Toyota AZ engine#2AZ-FXE|2AZ-FXE; 159 | break 160 | case "D": 161 | v.EngineModel = "2ZZ-GE" 162 | //D/2ZZ-GE; 163 | break 164 | case "E": 165 | v.EngineModel = "2AZ-FE" 166 | //E/2AZ-FE; 167 | break 168 | case "F": 169 | v.EngineModel = "1MZ-FE" 170 | //F/1MZ-FE or 2AR-FE; 171 | break 172 | case "G": 173 | v.EngineModel = "5S-FE" 174 | //G/5S-FE; 175 | break 176 | case "H": 177 | v.EngineModel = "1AZ-FE" 178 | //H/1AZ-FE; 179 | break 180 | case "J": 181 | v.EngineModel = "1FZ-FE" 182 | //J/1FZ-FE; 183 | break 184 | case "K": 185 | v.EngineModel = "2GR-FE" 186 | //K/2GR-FE; 187 | break 188 | case "L": 189 | v.EngineModel = "2RZ-FE" 190 | //L/2RZ-FE; 191 | break 192 | case "M": 193 | v.EngineModel = "3RZ-FE" 194 | //M/3RZ-FE; 195 | break 196 | case "N": 197 | v.EngineModel = "5VZ-FE" 198 | //N/5VZ-FE or 2ZR-FXE; 199 | break 200 | case "P": 201 | v.EngineModel = "3S-FE" 202 | //P/3S-FE; 203 | break 204 | case "R": 205 | v.EngineModel = "1ZZ-FE" 206 | //R/1ZZ-FE; 207 | break 208 | case "S": 209 | v.EngineModel = "1BM" 210 | //S/1BM or Electric; 211 | break 212 | case "T": 213 | v.EngineModel = "3S-GTE" 214 | //T/3S-GTE; 215 | break 216 | case "U": 217 | v.EngineModel = "1GR-FE" 218 | //U/1GR-FE or 2ZR-FE; 219 | break 220 | case "V": 221 | v.EngineModel = "1NR-FE" 222 | //V/1NR-FE and 223 | break 224 | case "Y": 225 | v.EngineModel = "3UR-FE" 226 | //Y/3UR-FE. 227 | break 228 | } 229 | } 230 | 231 | //Series... 232 | func (v *ToyotaVDS) Position6(char string) { 233 | 234 | } 235 | 236 | //Safety Features 237 | func (v *ToyotaVDS) Position7(char string) { 238 | switch char { 239 | case "0": 240 | v.Safety = "Manual Belts with 2 Airbags and Curtain Airbags" 241 | break 242 | case "1": 243 | v.Safety = "Manual Belt" 244 | break 245 | case "2": 246 | v.Safety = "Manual Belts with Driver Side Airbag" 247 | break 248 | case "3": 249 | v.Safety = "Manual Belts with 2 Airbags" 250 | break 251 | case "6": 252 | v.Safety = "Manual Belts with 2 Airbags, Side Airbags, Curtain Airbags and Knee Airbag for driver" 253 | break 254 | case "7": 255 | v.Safety = "Manual Belts with 2 Airbags and Knee Airbag for driver" 256 | break 257 | case "8": 258 | v.Safety = "Manual Belts with 2 Airbags and Side Airbags" 259 | break 260 | case "D": 261 | v.Safety = "Manual Belts with 2 Airbags, Side Airbags, Three-Row Curtain Airbags and Knee Airbag" 262 | break 263 | case "F": 264 | v.Safety = "Manual Belts with 2 Airbags, Side Airbags and Knee Airbag" 265 | break 266 | } 267 | } 268 | 269 | func (v *ToyotaVDS) Position8(char string) { 270 | switch char { 271 | case "0": 272 | v.Model = "MR2 Spyder" 273 | break 274 | case "1": 275 | v.Model = "Tundra" 276 | break 277 | case "3": 278 | v.Model = "Yaris" 279 | break 280 | case "4": 281 | v.Model = "xB" 282 | break 283 | case "7": 284 | v.Model = "tC" 285 | break 286 | case "A": 287 | v.Model = "Highlander, Sequoia, Celica and Supra" 288 | break 289 | case "B": 290 | v.Model = "Avalon" 291 | break 292 | case "C": 293 | v.Model = "Sienna and Previa" 294 | break 295 | case "D": 296 | v.Model = "T100" 297 | case "E": 298 | v.Model = "Corolla or Matrix" 299 | break 300 | case "F": 301 | v.Model = "FJ Cruiser" 302 | break 303 | case "G": 304 | v.Model = "Hilux" 305 | break 306 | case "H": 307 | v.Model = "Highlander" 308 | break 309 | case "J": 310 | v.Model = "Land Cruiser" 311 | break 312 | case "K": 313 | v.Model = "Camry" 314 | break 315 | case "L": 316 | v.Model = "Tercel and Paseo" 317 | break 318 | case "M": 319 | v.Model = "Previa" 320 | break 321 | case "N": 322 | v.Model = "Tacoma and older trucks" 323 | break 324 | case "P": 325 | v.Model = "Camry Solara" 326 | break 327 | case "R": 328 | v.Model = "4Runner and Corolla" 329 | break 330 | case "T": 331 | v.Model = "Celica" 332 | v.Platform = "FWD" 333 | break 334 | case "U": 335 | v.Model = "Prius" 336 | break 337 | case "V": 338 | v.Model = "RAV4" 339 | break 340 | case "W": 341 | v.Model = "MR2 non Spyder" 342 | break 343 | case "X": 344 | v.Model = "Cressida" 345 | break 346 | } 347 | } 348 | -------------------------------------------------------------------------------- /db/temp.json: -------------------------------------------------------------------------------- 1 | [ 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | { 13 | "WMICode": "R2P", 14 | "Name": "Evoke Electric Motorcycles HK", 15 | "Description": "Evoke Electric Motorcycles HK", 16 | "VehicleType": 0, 17 | "AssemblyPlants": [] 18 | }, 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | { 72 | "WMICode": "YS2", 73 | "Name": "Scania, Södertälje", 74 | "Description": "Scania, Södertälje Sweden", 75 | "VehicleType": 0, 76 | "AssemblyPlants": [] 77 | }, 78 | { 79 | "WMICode": "YS3", 80 | "Name": "Saab", 81 | "Description": "Saab Sweden", 82 | "VehicleType": 0, 83 | "AssemblyPlants": [] 84 | }, 85 | { 86 | "WMICode": "YS4", 87 | "Name": "Scania, Katrineholm", 88 | "Description": "Scania, Katrineholm Sweden", 89 | "VehicleType": 0, 90 | "AssemblyPlants": [] 91 | }, 92 | { 93 | "WMICode": "YTN", 94 | "Name": "Saab NEVS", 95 | "Description": "Saab NEVS Sweden", 96 | "VehicleType": 0, 97 | "AssemblyPlants": [] 98 | }, 99 | { 100 | "WMICode": "YV1", 101 | "Name": "Volvo Cars", 102 | "Description": "Volvo Cars Sweden", 103 | "VehicleType": 0, 104 | "AssemblyPlants": [] 105 | }, 106 | { 107 | "WMICode": "YV2", 108 | "Name": "Volvo Trucks", 109 | "Description": "Volvo Trucks Sweden", 110 | "VehicleType": 0, 111 | "AssemblyPlants": [] 112 | }, 113 | { 114 | "WMICode": "YV3", 115 | "Name": "Volvo Buses", 116 | "Description": "Volvo Buses Sweden", 117 | "VehicleType": 0, 118 | "AssemblyPlants": [] 119 | }, 120 | { 121 | "WMICode": "YT9", 122 | "Name": "Koenigsegg Automotive AB", 123 | "Description": "Koenigsegg Automotive AB Sweden", 124 | "VehicleType": 0, 125 | "AssemblyPlants": [] 126 | }, 127 | { 128 | "WMICode": "ZA9", 129 | "Name": "Bugatti", 130 | "Description": "Bugatti Italy", 131 | "VehicleType": 0, 132 | "AssemblyPlants": [] 133 | }, 134 | { 135 | "WMICode": "ZAM", 136 | "Name": "Maserati", 137 | "Description": "Maserati Italy", 138 | "VehicleType": 0, 139 | "AssemblyPlants": [] 140 | }, 141 | { 142 | "WMICode": "ZAR", 143 | "Name": "Alfa Romeo", 144 | "Description": "Alfa Romeo Italy", 145 | "VehicleType": 0, 146 | "AssemblyPlants": [] 147 | }, 148 | { 149 | "WMICode": "ZCF", 150 | "Name": "Iveco", 151 | "Description": "Iveco Italy", 152 | "VehicleType": 0, 153 | "AssemblyPlants": [] 154 | }, 155 | { 156 | "WMICode": "ZFA", 157 | "Name": "Fiat", 158 | "Description": "Fiat Italy", 159 | "VehicleType": 0, 160 | "AssemblyPlants": [] 161 | }, 162 | { 163 | "WMICode": "ZFF", 164 | "Name": "Ferrari", 165 | "Description": "Ferrari Italy", 166 | "VehicleType": 0, 167 | "AssemblyPlants": [] 168 | }, 169 | { 170 | "WMICode": "ZGA", 171 | "Name": "IvecoBus", 172 | "Description": "Iveco Bus Italy", 173 | "VehicleType": 0, 174 | "AssemblyPlants": [] 175 | }, 176 | { 177 | "WMICode": "ZHW", 178 | "Name": "Lamborghini", 179 | "Description": "Lamborghini Italy", 180 | "VehicleType": 0, 181 | "AssemblyPlants": [] 182 | }, 183 | { 184 | "WMICode": "ZLA", 185 | "Name": "Lancia", 186 | "Description": "Lancia Italy", 187 | "VehicleType": 0, 188 | "AssemblyPlants": [] 189 | }, 190 | { 191 | "WMICode": "1B", 192 | "Name": "Dodge", 193 | "Description": "Dodge USA", 194 | "VehicleType": 0, 195 | "AssemblyPlants": [] 196 | }, 197 | { 198 | "WMICode": "1C", 199 | "Name": "Chrysler", 200 | "Description": "Chrysler USA", 201 | "VehicleType": 0, 202 | "AssemblyPlants": [] 203 | }, 204 | { 205 | "WMICode": "1F", 206 | "Name": "Ford", 207 | "Description": "Ford USA", 208 | "VehicleType": 0, 209 | "AssemblyPlants": [] 210 | }, 211 | { 212 | "WMICode": "1G", 213 | "Name": "General Motors", 214 | "Description": "General Motors USA", 215 | "VehicleType": 0, 216 | "AssemblyPlants": [] 217 | }, 218 | { 219 | "WMICode": "1G1", 220 | "Name": "Chevrolet", 221 | "Description": "Chevrolet USA", 222 | "VehicleType": 0, 223 | "AssemblyPlants": [] 224 | }, 225 | { 226 | "WMICode": "1G3", 227 | "Name": "Oldsmobile", 228 | "Description": "Oldsmobile USA", 229 | "VehicleType": 0, 230 | "AssemblyPlants": [] 231 | }, 232 | { 233 | "WMICode": "1G4", 234 | "Name": "Buick", 235 | "Description": "Buick USA", 236 | "VehicleType": 0, 237 | "AssemblyPlants": [] 238 | }, 239 | { 240 | "WMICode": "1G9", 241 | "Name": "Google", 242 | "Description": "Google USA", 243 | "VehicleType": 0, 244 | "AssemblyPlants": [] 245 | }, 246 | { 247 | "WMICode": "1GB", 248 | "Name": "Chevrolet incomplete vehicles", 249 | "Description": "Chevrolet incomplete vehicles USA", 250 | "VehicleType": 7, 251 | "AssemblyPlants": [] 252 | }, 253 | { 254 | "WMICode": "1GC", 255 | "Name": "Chevrolet", 256 | "Description": "Chevrolet USA", 257 | "VehicleType": 0, 258 | "AssemblyPlants": [] 259 | }, 260 | { 261 | "WMICode": "1GD", 262 | "Name": "GMC incomplete vehicles", 263 | "Description": "GMC incomplete vehicles USA", 264 | "VehicleType": 7, 265 | "AssemblyPlants": [] 266 | }, 267 | { 268 | "WMICode": "1GM", 269 | "Name": "Pontiac", 270 | "Description": "Pontiac USA", 271 | "VehicleType": 0, 272 | "AssemblyPlants": [] 273 | }, 274 | { 275 | "WMICode": "1HG", 276 | "Name": "Honda", 277 | "Description": "Honda USA", 278 | "VehicleType": 0, 279 | "AssemblyPlants": [] 280 | }, 281 | { 282 | "WMICode": "1J", 283 | "Name": "Jeep", 284 | "Description": "Jeep USA", 285 | "VehicleType": 0, 286 | "AssemblyPlants": [] 287 | }, 288 | { 289 | "WMICode": "1L", 290 | "Name": "Lincoln", 291 | "Description": "Lincoln USA", 292 | "VehicleType": 0, 293 | "AssemblyPlants": [] 294 | }, 295 | { 296 | "WMICode": "1M", 297 | "Name": "Mercury", 298 | "Description": "Mercury USA", 299 | "VehicleType": 0, 300 | "AssemblyPlants": [] 301 | }, 302 | { 303 | "WMICode": "1MR", 304 | "Name": "Continental", 305 | "Description": "Continental USA", 306 | "VehicleType": 0, 307 | "AssemblyPlants": [] 308 | }, 309 | { 310 | "WMICode": "1N?", 311 | "Name": "Nissan", 312 | "Description": "Nissan USA", 313 | "VehicleType": 0, 314 | "AssemblyPlants": [] 315 | }, 316 | { 317 | "WMICode": "1VW", 318 | "Name": "Volkswagen", 319 | "Description": "Volkswagen USA", 320 | "VehicleType": 0, 321 | "AssemblyPlants": [] 322 | }, 323 | { 324 | "WMICode": "1YV", 325 | "Name": "Mazda", 326 | "Description": "Mazda USA", 327 | "VehicleType": 0, 328 | "AssemblyPlants": [] 329 | }, 330 | { 331 | "WMICode": "1ZV", 332 | "Name": "Ford", 333 | "Description": "Ford USA", 334 | "VehicleType": 0, 335 | "AssemblyPlants": [] 336 | }, 337 | { 338 | "WMICode": "2DG", 339 | "Name": "Ontario Drive & Gear", 340 | "Description": "Ontario Drive & Gear Canada", 341 | "VehicleType": 0, 342 | "AssemblyPlants": [] 343 | }, 344 | { 345 | "WMICode": "2F", 346 | "Name": "Ford", 347 | "Description": "Ford Canada", 348 | "VehicleType": 0, 349 | "AssemblyPlants": [] 350 | }, 351 | { 352 | "WMICode": "2GX", 353 | "Name": "General Motors", 354 | "Description": "General Motors Canada", 355 | "VehicleType": 0, 356 | "AssemblyPlants": [] 357 | }, 358 | { 359 | "WMICode": "2G1", 360 | "Name": "Chevrolet", 361 | "Description": "Chevrolet Canada", 362 | "VehicleType": 0, 363 | "AssemblyPlants": [] 364 | }, 365 | { 366 | "WMICode": "2G2", 367 | "Name": "Pontiac", 368 | "Description": "Pontiac Canada", 369 | "VehicleType": 0, 370 | "AssemblyPlants": [] 371 | }, 372 | { 373 | "WMICode": "2G9", 374 | "Name": "Gnome Homes", 375 | "Description": "Gnome Homes Canada", 376 | "VehicleType": 0, 377 | "AssemblyPlants": [] 378 | }, 379 | { 380 | "WMICode": "2HG", 381 | "Name": "Honda", 382 | "Description": "Honda Canada", 383 | "VehicleType": 0, 384 | "AssemblyPlants": [] 385 | }, 386 | { 387 | "WMICode": "2HH", 388 | "Name": "Acura", 389 | "Description": "Acura Canada", 390 | "VehicleType": 0, 391 | "AssemblyPlants": [] 392 | }, 393 | { 394 | "WMICode": "2HJ", 395 | "Name": "Honda", 396 | "Description": "Honda Canada", 397 | "VehicleType": 0, 398 | "AssemblyPlants": [] 399 | }, 400 | { 401 | "WMICode": "2HK", 402 | "Name": "Honda", 403 | "Description": "Honda Canada", 404 | "VehicleType": 0, 405 | "AssemblyPlants": [] 406 | }, 407 | { 408 | "WMICode": "2HM", 409 | "Name": "Hyundai", 410 | "Description": "Hyundai Canada", 411 | "VehicleType": 0, 412 | "AssemblyPlants": [] 413 | }, 414 | { 415 | "WMICode": "2L9", 416 | "Name": "Les Contenants Durabac", 417 | "Description": "Les Contenants Durabac Canada", 418 | "VehicleType": 0, 419 | "AssemblyPlants": [] 420 | }, 421 | { 422 | "WMICode": "2LN", 423 | "Name": "Lincoln", 424 | "Description": "Lincoln Canada", 425 | "VehicleType": 0, 426 | "AssemblyPlants": [] 427 | }, 428 | { 429 | "WMICode": "2M", 430 | "Name": "Mercury", 431 | "Description": "Mercury Canada", 432 | "VehicleType": 0, 433 | "AssemblyPlants": [] 434 | }, 435 | { 436 | "WMICode": "2T", 437 | "Name": "Toyota", 438 | "Description": "Toyota Canada", 439 | "VehicleType": 0, 440 | "AssemblyPlants": [] 441 | }, 442 | { 443 | "WMICode": "3F", 444 | "Name": "Ford", 445 | "Description": "Ford Mexico", 446 | "VehicleType": 0, 447 | "AssemblyPlants": [] 448 | }, 449 | { 450 | "WMICode": "3G", 451 | "Name": "General Motors", 452 | "Description": "General Motors Mexico", 453 | "VehicleType": 0, 454 | "AssemblyPlants": [] 455 | }, 456 | { 457 | "WMICode": "3HG", 458 | "Name": "Honda", 459 | "Description": "Honda Mexico", 460 | "VehicleType": 0, 461 | "AssemblyPlants": [] 462 | }, 463 | { 464 | "WMICode": "3HM", 465 | "Name": "Honda", 466 | "Description": "Honda Mexico", 467 | "VehicleType": 0, 468 | "AssemblyPlants": [] 469 | }, 470 | { 471 | "WMICode": "3KP", 472 | "Name": "Kia", 473 | "Description": "Kia Mexico", 474 | "VehicleType": 0, 475 | "AssemblyPlants": [] 476 | }, 477 | { 478 | "WMICode": "3N", 479 | "Name": "Nissan", 480 | "Description": "Nissan Mexico", 481 | "VehicleType": 0, 482 | "AssemblyPlants": [] 483 | }, 484 | { 485 | "WMICode": "3VW", 486 | "Name": "Volkswagen", 487 | "Description": "Volkswagen Mexico", 488 | "VehicleType": 0, 489 | "AssemblyPlants": [] 490 | }, 491 | { 492 | "WMICode": "4F", 493 | "Name": "Mazda", 494 | "Description": "Mazda USA", 495 | "VehicleType": 0, 496 | "AssemblyPlants": [] 497 | }, 498 | { 499 | "WMICode": "4J", 500 | "Name": "Mercedes-Benz", 501 | "Description": "Mercedes-Benz USA", 502 | "VehicleType": 0, 503 | "AssemblyPlants": [] 504 | }, 505 | { 506 | "WMICode": "4M", 507 | "Name": "Mercury", 508 | "Description": "Mercury USA", 509 | "VehicleType": 0, 510 | "AssemblyPlants": [] 511 | }, 512 | { 513 | "WMICode": "4S3", 514 | "Name": "Subaru", 515 | "Description": "Subaru USA", 516 | "VehicleType": 0, 517 | "AssemblyPlants": [] 518 | }, 519 | { 520 | "WMICode": "4S4", 521 | "Name": "Subaru", 522 | "Description": "Subaru USA", 523 | "VehicleType": 0, 524 | "AssemblyPlants": [] 525 | }, 526 | { 527 | "WMICode": "4S6", 528 | "Name": "Honda", 529 | "Description": "Honda USA", 530 | "VehicleType": 0, 531 | "AssemblyPlants": [] 532 | }, 533 | { 534 | "WMICode": "4T", 535 | "Name": "Toyota", 536 | "Description": "Toyota USA", 537 | "VehicleType": 0, 538 | "AssemblyPlants": [] 539 | }, 540 | { 541 | "WMICode": "4US", 542 | "Name": "BMW", 543 | "Description": "BMW USA", 544 | "VehicleType": 0, 545 | "AssemblyPlants": [] 546 | }, 547 | { 548 | "WMICode": "5FN", 549 | "Name": "Honda", 550 | "Description": "Honda USA", 551 | "VehicleType": 0, 552 | "AssemblyPlants": [] 553 | }, 554 | { 555 | "WMICode": "5J6", 556 | "Name": "Honda", 557 | "Description": "Honda USA", 558 | "VehicleType": 0, 559 | "AssemblyPlants": [] 560 | }, 561 | { 562 | "WMICode": "5L", 563 | "Name": "Lincoln", 564 | "Description": "Lincoln USA", 565 | "VehicleType": 0, 566 | "AssemblyPlants": [] 567 | }, 568 | { 569 | "WMICode": "5N1", 570 | "Name": "Nissan", 571 | "Description": "Nissan USA", 572 | "VehicleType": 0, 573 | "AssemblyPlants": [] 574 | }, 575 | { 576 | "WMICode": "5NM", 577 | "Name": "Hyundai", 578 | "Description": "Hyundai USA", 579 | "VehicleType": 0, 580 | "AssemblyPlants": [] 581 | }, 582 | { 583 | "WMICode": "5NP", 584 | "Name": "Hyundai", 585 | "Description": "Hyundai USA", 586 | "VehicleType": 0, 587 | "AssemblyPlants": [] 588 | }, 589 | { 590 | "WMICode": "5T", 591 | "Name": "Toyota", 592 | "Description": "Toyota USA", 593 | "VehicleType": 0, 594 | "AssemblyPlants": [] 595 | }, 596 | { 597 | "WMICode": "5U", 598 | "Name": "BMW", 599 | "Description": "BMW USA", 600 | "VehicleType": 0, 601 | "AssemblyPlants": [] 602 | }, 603 | { 604 | "WMICode": "5X", 605 | "Name": "Hyundai/Kia", 606 | "Description": "Hyundai/Kia USA", 607 | "VehicleType": 0, 608 | "AssemblyPlants": [] 609 | }, 610 | { 611 | "WMICode": "5YJ", 612 | "Name": "Tesla", 613 | "Description": "Tesla USA", 614 | "VehicleType": 0, 615 | "AssemblyPlants": [] 616 | }, 617 | { 618 | "WMICode": "55", 619 | "Name": "Mercedes-Benz", 620 | "Description": "Mercedes-Benz USA", 621 | "VehicleType": 0, 622 | "AssemblyPlants": [] 623 | } 624 | ] -------------------------------------------------------------------------------- /scripts/wmi.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO WMI 2 | VALUES() 3 | 4 | 5 | /* 6 | --- HONDA 7 | 'JHM', 'HONDA MOTOR CO., LTD', 'Passenger Car' 8 | '1HG', 'HONDA OF AMERICA MFG., INC.', 'Passenger Car' 9 | '5KB', 'HONDA MFG., ALABAMA., LLC.', 'Passenger Car' 10 | '2HG', 'HONDA OF CANADA MFG., INC.', 'Passenger Car' 11 | 'SHH', 'HONDA OF THE U.K. MFG., LTD.', 'Passenger Car' 12 | '3HG', 'HONDA DE MEXICO', 'Passenger Car' 13 | '19X', 'HONDA MFG., INDIANA., LLC.', 'Passenger Car' 14 | 'JH4', 'HONDA MOTOR CO., LTD', 'Passenger Car' 15 | 'JHL', 'HONDA MOTOR CO., LTD', 'MPV' 16 | 'JH1', 'HONDA MOTOR CO., LTD', 'Truck ' 17 | '19U', 'HONDA OF AMERICA MFG., INC.', 'Passenger Car' 18 | '5J6', 'HONDA OF AMERICA MFG., INC.', 'MPV' 19 | '5J8', 'HONDA OF AMERICA MFG., INC.', 'MPV' 20 | '5J7', 'HONDA OF AMERICA MFG., INC.', 'Truck ' 21 | '5J0', 'HONDA OF AMERICA MFG., INC.', 'Truck ' 22 | '5KC', 'HONDA MFG., ALABAMA., LLC.', 'Passenger Car' 23 | '5FN', 'HONDA MFG., ALABAMA., LLC.', 'MPV' 24 | '5FR', 'HONDA MFG., ALABAMA., LLC.', 'MPV' 25 | '5FP', 'HONDA MFG., ALABAMA., LLC.', 'Truck ' 26 | '5FS', 'HONDA MFG., ALABAMA., LLC.', 'Truck ' 27 | '2HH', 'HONDA OF CANADA MFG., INC.', 'Passenger Car' 28 | '2HK', 'HONDA OF CANADA MFG., INC.', 'MPV' 29 | '2HN', 'HONDA OF CANADA MFG., INC.', 'MPV' 30 | '2HJ', 'HONDA OF CANADA MFG., INC.', 'Truck ' 31 | '2HU', 'HONDA OF CANADA MFG., INC.', 'Truck ' 32 | 'SHS', 'HONDA OF THE U.K. MFG., LTD.', 'MPV' 33 | '3CZ', 'HONDA DE MEXICO', 'MPV' 34 | 'JH2', 'AMERICAN HONDA MOTOR CO., INC.', 'Motorcycle' 35 | '1HF', 'AMERICAN HONDA MOTOR CO., INC.', 'Motorcycle' 36 | 'YC1', 'HONDA OF AMERICA MFG., INC.', 'Motorcycle' 37 | '3H1', 'AMERICAN HONDA MOTOR CO., INC.', 'Motorcycle' 38 | '19V', 'HONDA MFG., INDIANA., LLC.', 'Passenger Car' 39 | 'ZDC', 'AMERICAN HONDA MOTOR CO., INC.', 'Motorcycle' 40 | 'MLH', 'AMERICAN HONDA MOTOR CO., INC.', 'Motorcycle' 41 | 'LAL', 'SUNDIRO HONDA MOTORCYCLE CO., LTD.', 'Motorcycle' 42 | 'RLH', 'AMERICAN HONDA MOTOR CO., INC.', 'Motorcycle' 43 | 'VTM', 'AMERICAN HONDA MOTOR CO., INC.', 'Motorcycle' 44 | 'LWB', 'AMERICAN HONDA MOTOR CO., INC.', 'Motorcycle' 45 | 'LRY', 'CHONGQING GUANGYU MOTORCYCLE MANUFACTURE CO., LTD.', 'Motorcycle' 46 | 'LSR', 'CHONGQING HI-BIRD MOTORCYCLE INDUSTRY CO., LTD.', 'Motorcycle' 47 | 'LYE', 'CHONGQING KAIER MOTORCYCLE MANUFACTURING CO.,', 'Motorcycle' 48 | 'LLC', 'CHONGQING KINLON MOTORCYCLE MANUFACTURE CO., LTD', 'Motorcycle' 49 | 'LWG', 'CHONGQING HUANSONG INDUSTRIES (GROUP) CO., LTD.', 'Motorcycle' 50 | 'LRP', 'CHONGQING RATO POWER CO., LTD.', 'Motorcycle' 51 | 'LB4', 'CHONGQING YINXIANG MOTORCYCLE (GROUP) CO., LTD.', 'Motorcycle' 52 | 'JR2', 'AMERICAN HONDA MOTOR CO., INC.', 'MPV' 53 | 'LC3', 'WUXI JINHONG MOTORCYCLE CO., LTD', 'Motorcycle' 54 | '1J9390', 'JOYHON, INC.', 'Trailer' 55 | 'L0H', 'CHANGZHOU ZHONGMAO MACHINERY CO., LTD', 'Trailer' 56 | 'LHJ', 'CHONGQING ASTRONAUTICAL BASHAN MOTORCYCLE MANUFACTURER.CO., LTD,', 'Motorcycle' 57 | '1M9822', 'MARATHON METALWORKS', 'Trailer' 58 | 'LUA', ' CHONGQING HENSIM GROUP CO., LTD.', 'Motorcycle' 59 | 'L4Y', 'QINGQI GROUP NINGBO RHON MOTORCYCLE CO., LTD', 'Motorcycle' 60 | 'L82', 'JIANGMEN SINO-HONGKONG BAOTIAN MOTORCYCLE INDUSTRIAL CO., LTD.', 'Motorcycle' 61 | 'L69FYK', 'SHANDONG ZHONGTONG FEIYAN AUTOMOBILE CO. LTD.', 'Motorcycle' 62 | 'L5Y', 'TAIZHOU ZHONGNENG MOTORCYCLE CO., LTD.', 'Motorcycle' 63 | 'LSB', 'SHANGHAI HUIZHONG AUTOMOTIVE MANUFACTURING CO., LTD', 'Trailer' 64 | 'LLA', 'SHANGHAI HONLING MOTORCYCLE MANUFACTURE CO., LTD.', 'Motorcycle' 65 | 'LKX', 'CHONGQING KINGTON INDUSTRY GROUP CO., LTD.', 'Motorcycle' 66 | 'LZX', 'CHONGQING SHUANGQING MECHANICAL & ELECTRICAL CO.', 'Motorcycle' 67 | 'L1P', 'CHONGQUING DAIJING MOTORCYCLES CO', 'Motorcycle' 68 | '1M9019', 'MARATHON HOMES CORPORATION', 'Trailer' 69 | 'R12', 'Xinri E-Vehicle Hongkong Co., Limited', 'Motorcycle' 70 | 'LXY', 'CHONGQING SHINERAY MOTORCYCLE CO., LTD.', 'Motorcycle' 71 | '9C2', 'AMERICAN HONDA MOTOR CO., INC.', 'Motorcycle' 72 | 'JH3', 'HONDA MOTOR CO., LTD', 'Motorcycle' 73 | '478', 'HONDA MFG., INDIANA., LLC.', 'Motorcycle' 74 | 'VTD', 'MONTESA HONDA SA', 'Motorcycle' 75 | 'LY4', 'CHONGQING YINGANG SCIENCE & TECHNOLOGY (GROUP) CO., LTD.', 'Motorcycle' 76 | 'R1V', 'RONGCHENG COMPAKS (HONG KONG) NEW ENERGY AUTOMOBILE CO LTD', 'Trailer' 77 | '2M9004', 'MARATHON EQUIPMENT LTD ', 'Trailer' 78 | '7FA', 'HONDA MFG., INDIANA., LLC.', 'MPV' 79 | '1G9340', 'GRYPHON BIKES & CHOPPERS', 'Motorcycle' 80 | 'LMF', 'JIANGMEN ZHONGYU MOTOR (GROUP) CO., LTD.', 'Motorcycle' 81 | 'R1A', 'JHC NEW ENERGY VEHICLE HONGKONG CO.,LTD', 'Low Speed Vehicle (LSV)' 82 | 'LPP', 'NANCHANG AIRCRAFT MFG. CO ( HONGDU MACHINERY PLANT)', 'Motorcycle' 83 | 'SA9112', 'HONNOR MARINE LTD', 'Trailer' 84 | 'R2L', 'HONGDU ELECTRIC VEHICLE HONGKONG CO.,LIMITED', 'Motorcycle' 85 | 'LE6', 'HONGDOU GROUP CHITUMA MOTORCYCLE COMPANY', 'Motorcycle' 86 | 87 | -- HONDA SAE 88 | '19U', 'American Honda Motor Co Inc', 'Passenger Car' 89 | '19V', 'Honda Manufacturing of Indiana LLC', 'Passenger Car' 90 | '19X', 'Honda Manufacturing of Indiana LLC', 'Passenger Car' 91 | '1G9', 'Gryphon Bikes & Choppers', 'Motorcycles - Complete, Street-Use' 92 | '1H9', 'Honey RV', 'Park Model Recreational Trailer' 93 | '1HF', 'American Honda Motor Co Inc', '' 94 | '1HG', 'Honda of America Mfg Inc', 'Automobiles' 95 | '1J9', 'Joyhon Inc', 'Trailers' 96 | '1M9', 'Marathon Homes Corporation', 'Travel Trailers & Fifth Wheels' 97 | '1M9', 'Marathon Equipment Co', 'Recycling Trailers' 98 | '1M9', 'Marathon Industries Inc', 'Trailers' 99 | '1M9', 'Marathon Metalworks LLC', 'Trailers' 100 | '1M9', 'Marathon Intl Inc.', 'Trailers' 101 | '1P9', 'Phelps Honey Wagon Inc.', 'Sewage Tanks For Campers' 102 | '2A9', 'Les Ateliers St - Honore Inc', '' 103 | '2HF', 'Honda Canada Inc', 'Motorcycles' 104 | '2HG', 'Honda Canada Inc', 'Cars' 105 | '2HH', 'Honda Canada Inc', 'Passenger Car' 106 | '2HJ', 'Honda Canada Inc', 'Light Duty Trucks' 107 | '2HK', 'Honda Canada Inc', 'Multipurpose Passenger Vehicle' 108 | '2HN', 'Honda Canada Inc', 'Multi-Purpose Vehicles' 109 | '2HU', 'Honda Canada Inc', 'Trucks' 110 | '2M9', 'Marathon Equipment Ltd', 'Trailers' 111 | '2M9', 'Marathon Road Maintenance Equipment', 'Trailers' 112 | '2M9', 'Marathon Marine Manufacturing (1996) Ltd', 'Trailers' 113 | '2M9', 'Marathon Equipment Inc.', 'Trailers' 114 | '3CZ', 'Honda de Mexico SA de CV', 'Automovil, modelo CR-V' 115 | '3H1', 'Honda de Mexico SA de CV', 'Motorcycles' 116 | '3HG', 'Honda de Mexico SA de CV', 'Passenger Cars' 117 | '478', 'Honda of America Mfg Inc', 'Off-Road Vehicle' 118 | '4P6', 'Phontom Trailers', 'Utility Trailers' 119 | '5FN', 'Honda Manufacturing of Alabama LLC', 'Multi-Purpose Passenger Vehicles' 120 | '5FP', 'Honda Manufacturing of Alabama LLC', 'Light Duty Trucks' 121 | '5FR', 'Honda Manufacturing of Alabama LLC', 'Multi-Purpose Passenger Vehicles' 122 | '5FS', 'Honda Manufacturing of Alabama LLC', 'Light Duty Trucks' 123 | '5J0', 'Honda of America Mfg Inc', 'Light-Duty Truck (Ltd)' 124 | '5J6', 'Honda of America Mfg Inc', 'Multi-Purpose Vehicle (Mpv)' 125 | '5J7', 'Honda of America Mfg Inc', 'Light-Duty Truck (Ltd)' 126 | '5J8', 'Honda of America Mfg Inc', 'Multi-Purpose Vehicle (Mpv)' 127 | '5KB', 'Honda Manufacturing of Alabama LLC', 'Passenger Vehicle' 128 | '5KC', 'Honda Manufacturing of Alabama LLC', 'Passenger Vehicle' 129 | '6H6', 'Honda Australia Motorcycles', 'Motorcycles' 130 | '6MB', 'Prochon Pty Ltd', 'Motorcycles' 131 | '7A3', 'Honda New Zealand Limited', '' 132 | '7B4', 'Blue Wing Honda Limited', '' 133 | '7B6', 'Honda New Zealand Limited', '' 134 | '7FA', 'Honda Manufacturing of Indiana LLC', 'Multi-Purpose Passenger Vehicle' 135 | '8C3', 'Honda Motor de Argentina S.A.', 'passenger car' 136 | '8CH', 'Honda Motor de Argentina S A', 'Motorcycle' 137 | '93H', 'Honda Automoveis do Brasil Ltda', 'Automobile' 138 | '9C2', 'Moto Honda Da Amazonia Ltda.', 'Motorcycles' 139 | '9F9', 'Talleres Y Transportes Pachon Ltda.', 'Trailers' 140 | 'BF0', 'Honda Motorcycle Kenya Limited', 'Motorcycles, street-use' 141 | 'BL0', 'Honda Nigeria Ltd.', 'Motorcycles' 142 | 'BL1', 'Honda Automobile Western Africa Ltd.', 'Passenger Car' 143 | 'JH1', 'Honda Motor Co Ltd', 'Truck (Complete Vehicle)' 144 | 'JH2', 'Honda Motor Co Ltd', 'Motorcycle' 145 | 'JH3', 'Honda Motor Co Ltd', 'All-Terrain Vehicle' 146 | 'JH4', 'Honda Motor Co Ltd', 'Reserved' 147 | 'JH5', 'Honda Motor Co Ltd', 'Reserved' 148 | 'JHL', 'Honda Motor Co Ltd', 'Reserved' 149 | 'JHM', 'Honda Motor Co Ltd', 'Passenger Car' 150 | 'JHW', 'Honda Motor Co Ltd', 'Reserved' 151 | 'JHX', 'Honda Motor Co Ltd', 'Reserved' 152 | 'JHY', 'Honda Motor Co Ltd', 'Reserved' 153 | 'JHZ', 'Honda Motor Co Ltd', 'Reserved' 154 | 'JR1', 'Honda Motor Co Ltd', 'Reserved' 155 | 'JR2', 'Honda Motor Co Ltd', 'Reserved' 156 | 'JR3', 'Honda Motor Co Ltd', 'Reserved' 157 | 'JR4', 'Honda Motor Co Ltd', 'Reserved' 158 | 'JR5', 'Honda Motor Co Ltd', 'Reserved' 159 | 'JR6', 'Honda Motor Co Ltd', 'Reserved' 160 | 'JR7', 'Honda Motor Co Ltd', 'Reserved' 161 | 'JR8', 'Honda Motor Co Ltd', 'Reserved' 162 | 'L06', 'Chongqing Jianjia Motive Power Machinery', 'ATV' 163 | 'L0D', 'Chongqing Panlong Technology Dev Co Ltd', 'ATV' 164 | 'L0H', 'Changzhou Zhongmao Machinery Co. Ltd.', 'Trailers' 165 | 'L0W', 'Chongqing Haosen Motorcycle Co Ltd.', 'ATVs, dirt bikes' 166 | 'L1K', 'Chongqing Hengtong Coach Co. Ltd.', 'Bus' 167 | 'L1P', 'Chongqing Dajiang Motorcycle Co. Ltd.', 'Motorcycle' 168 | 'L1R', 'Chongqing Beyond Special Vehicle Co Ltd.', 'ATVs' 169 | 'L20', 'The Agriculture Car of Hongyun Factory', 'Low-speed Goods Vehicle' 170 | 'L28', 'Chongqing Junesun Special Vehicle Co Ltd', 'ATV' 171 | 'L3A', 'Chongqing Jialing Special Equip. Co. Ltd', 'Bus, Truck, Trailer, Incomplete Vehicle' 172 | 'L4Y', 'Qingqi Group Ningbo Rhon Motorycle Co Lt', 'Motorcycle, ATV' 173 | 'L5Y', 'Taizhou Zhongneng Motorcycle Co Ltd', 'Motorcycle' 174 | 'L63', 'Zhongtong Automobile Industry Group Co.', 'Low-speed Goods Vehicle' 175 | 'L69', 'Shandong Zhongtong Feiyan Automobile Co', 'Bus, Truck, Trailer' 176 | 'L6U', 'Zhejiang Chaozhong Industrial Co Ltd', 'ATV, Scooter' 177 | 'L6X', 'Chongqing Dongben Industry Co Ltd', 'Motorcycles' 178 | 'L7J', 'Jiangsu Zhongxing Motorcycle Co Ltd', 'Motorcycles' 179 | 'L80', 'Chongqing Lianfei Motorcycle Co Ltd', 'ATV' 180 | 'L82', 'Jiangmen Sino-Hong Kong Baotian Motorcyc', 'Motorcycle' 181 | 'L9E', 'Chongqing SAJAO Mechanical & Electrical', 'ATVs' 182 | 'LA4', 'Shanghai Zhongmo Industrial Co', 'Motorcycles' 183 | 'LA9', 'Zhengzhou Hongda Automobile Industry Co', 'Trailers' 184 | 'LA9', 'Zhengzhou Hongda Automobile Industry Co', 'Trailer' 185 | 'LA9', 'Zhongshan Haiyue Automobile Industry Co', 'Special Vehicle' 186 | 'LA9', 'Bengbu Zhenchong Anli Engrg Machine Co L', 'Special Vehicle' 187 | 'LA9', 'Nanchong Machinery Plant Of Sichuan', 'Special Vehicle' 188 | 'LA9', 'Beijing Zhonghuan Kinetics Heavy Vehicle', 'Truck, Trailer' 189 | 'LA9', 'Beijing Zhongqi Yunsong Automobile', 'Truck, Bus' 190 | 'LA9', 'Baoding Hongye Petroleum Prospecting', 'Truck' 191 | 'LA9', 'Beijing Beizhong Automobile Refitting Co', 'Truck' 192 | 'LA9', 'Beijing Zhonghuan Kinetics Heavy Vehicle', 'Truck, Trailer' 193 | 'LA9', 'Chongqing Chuanjiang Vehicle Mfg Co Ltd', 'Bus, Truck' 194 | 'LA9', 'Chongqing Jinguan Automobile Mfg Co Ltd', 'Bus, Truck' 195 | 'LA9', 'Chongqing Changjiang Western Heavy Truck', 'Trucks' 196 | 'LA9', 'Chongqing Ruichi Automotive Industry Co.', 'Bus, Truck' 197 | 'LA9', 'Chongqing Kairui Spec Purp Vehicle Plant', 'Truck, Trailer' 198 | 'LA9', 'Dong'E Zhongya Special Vehicle Co. Ltd.', 'Truck, trailer' 199 | 'LA9', 'Dong'E Zhongya Special Vehicle Co. Ltd.', 'Trucks, Trailers' 200 | 'LA9', 'Shandong Donghong Industry Trade Co. Ltd', 'Trucks' 201 | 'LA9', 'Dailian Zhongqi Kamaz Special Automobile', 'Truck, Trailer' 202 | 'LA9', 'Liaoning Lingyuan Hongling Automotive Gr', 'Truck, Incomplete Vehicle' 203 | 'LA9', 'Tianjin HongFengtai Automobile Repacking', 'Truck, Trailer' 204 | 'LA9', 'Tangshan Hongda Vehicles Refitment Co Lt', 'Trucks, Trailers' 205 | 'LA9', 'Hebei Hongchang Tianma Special Pur Veh C', 'Trucks, Trailers' 206 | 'LA9', 'Zhangzhou Hongyu Special Vehicle Co Ltd', 'Trailer, Truck' 207 | 'LA9', 'Hebei Hongtai Special Truck Co Ltd', 'Truck, Trailer' 208 | 'LA9', 'Tangshan Honda Vehicles Refitment Co', 'Truck, Trailer, Special Vehicle' 209 | 'LA9', 'Hongyun Automotive Corporation', 'Truck, Trailer' 210 | 'LA9', 'Jiangsu Zhonghuan Machinery Co Ltd', 'Low-speed Goods Vehicle' 211 | 'LA9', 'Jiangsu Zhongyi Auto Co Ltd', 'Trucks' 212 | 'LA9', 'Zhejiang Zhongyu Automobile Co. Ltd.', 'Bus' 213 | 'LA9', 'Zhongtong Automobile Industry Group Co.', 'Truck, Trailer, Bus' 214 | 'LA9', 'Chongqing Dima Industry Co Ltd', 'Bus, Truck' 215 | 'LA9', 'Chongqing South DIMA Special Purpose Veh', 'Truck' 216 | 'LA9', 'Sichuan Qinhong Construction Machinery F', 'Special Vehicle' 217 | 'LA9', 'Hubei Century Zhongyuan Vehicle Co Ltd', 'Truck' 218 | 'LA9', 'Liangshan Hongda Vehicle Makes Co Ltd', 'Truck, Trailer' 219 | 'LA9', 'Zhongcheng Group Shandong Longkou Motor', 'Truck, Bus, Trailer' 220 | 'LA9', 'Beijing Municipal Zhongyan Construction', 'Truck, Trailer' 221 | 'LA9', 'Shijiazhuang Zhongbo Auto Co. Ltd.', 'Bus' 222 | 'LA9', 'Shiyan Zhonglong Automobile Co Ltd.', 'Truck' 223 | 'LA9', 'Tieling Hongda Vehicle Modification Co L', 'Trailer, Truck' 224 | 'LA9', 'Zhongxing Special Automobile Mfg of Tang', 'Truck, Trailer' 225 | 'LA9', 'Wuhan Zhongzheng Chem Equip Co Ltd', 'Trailer, Truck' 226 | 'LA9', 'Wuzhong Wanxin Industrial Co Ltd', 'Trailers' 227 | 'LA9', 'Xinjiang Hongda Heavy-Duty Machinery', 'Truck' 228 | 'LA9', 'Xin Hong Chang Special Vehicle Co Ltd', 'Truck, trailer' 229 | 'LA9', 'Xinjiang Zhongtong Bus Company Ltd.', 'Bus' 230 | 'LA9', 'Xiangfan Xin Zhongchang Special Motor', 'Trailer' 231 | 'LA9', 'Yancheng Zhongwei Bus Co Ltd', 'Bus' 232 | 'LA9', 'Dagang Oilfield Group Zhongcheng Machine', 'Truck' 233 | 'LA9', 'Beijing Zhongjifuqing Special Purpose', 'Truck, Trailer' 234 | 'LA9', 'Suzhou Zhong-ou Auto Co Ltd', 'Bus' 235 | 'LA9', 'Jiangsu Yanghong Special Vehicle Mfg Co.', 'Truck, Trailer' 236 | 'LA9', 'Shandong Hongyunda Special Purpose', 'Truck, Trailer' 237 | 'LAD', 'Jiangsu Zhongqi Dongzheng Yinxiang Motor', 'Motorcycles' 238 | 'LAH', 'Chongqing Shuangqing Mechanical &', 'Motorcycles' 239 | 'LAL', 'Sundiro Honda Motorcycle Co Ltd', 'Motorcycles, Mopeds' 240 | 'LAP', 'Chongqing Jianshe Motorcycle Co Ltd.', 'Motorcycle, ATV' 241 | 'LAV', 'Hongying Motorcycle Factory', 'Motor-Scooters' 242 | 'LAZ', 'Chongqing Guangyi Motorcycle Co Ltd', 'Motorcycles' 243 | 'LB4', 'Chongqing Yinxiang Motorcycle Group Co', 'Motorcycles' 244 | 'LB9', 'Guangdong Zengcheng Zhongjingyangcheng', 'Truck' 245 | 'LBP', 'China Chongqing Jainshe', 'Motorcycle' 246 | 'LC3', 'Wuxi Jinhong Motorcycle Co. Ltd.', 'Motorcycle' 247 | 'LC4', 'Chongqing Liyang Jiatong Motorcycle Mfg', 'Motorcycle' 248 | 'LCG', 'Chongqing Shuangqing Mechanical &', 'Motorcycle' 249 | 'LCN', 'Chongqing Lifan Automobile Co Ltd', 'Pass Car,Bus,Truck,Trailer,Incom Ve' 250 | 'LCZ', 'Chongqing Heavy Vehicle Group Co Ltd', 'Trailer, Truck' 251 | 'LDJ', 'Chongqing Dajiang Industry (Group)', 'Special Vehicle' 252 | 'LDS', 'Chongqing Endurance Shanhua Special Vehi', 'Truck, Bus' 253 | 'LDY', 'Zhongtong Bus Holding Co Ltd', 'Bus, Incomplete Vehicle' 254 | 'LHA', 'Hebei Hongxing Automobile Manufacturing', 'Truck, Bus, Passenger Car, Incomplete Vehicle' 255 | 'LHC', 'Gaobeidian Zhongke Huabei Auto Co Ltd', 'Passenger Car,Bus, Truck' 256 | 'LHG', 'Guangzhou Honda Automobile Co LTD', 'Car' 257 | 'LHJ', 'Chongqing Astronautic Bashan', 'Motorcycle' 258 | 'LJ7', 'Zhongxing Group Co. Ltd.', 'Motorcycle' 259 | 'LKX', 'Chongqing Kington Liyang Motorcycle Manu', 'Motorcycle' 260 | 'LL7', 'Shanxi Hanzhong Bus Co Ltd', 'Bus, Truck' 261 | 'LLA', 'Shanghai Honling Motorcycle Manufacture', 'Motorcycle' 262 | 'LLC', 'Chongqing Loncin Motor Co Ltd', 'Motorcyle, Moped, ATV' 263 | 'LLM', 'Zhejiang Hongzhou Motorcycle Co Ltd', 'Motorcycle' 264 | 'LLS', 'Chonche Group Xi'an Lishan', 'Bus & Special Bus' 265 | 'LLV', 'Chongqing Lifan Passenger Vehicle Co Ltd', 'Passenger Cars' 266 | 'LMF', 'Jiangmen Zhongyu Motor (Group) Co Ltd', '' 267 | 'LPH', 'Guangzhou Hongqiao Bus Manufacture Co Lt', 'Bus' 268 | 'LPP', 'Jiangxi Hongdu Aviation Industry Group C', 'Mopeds, Motorcycles' 269 | 'LRA', 'Ji'Nan Hongqi Kaiwote Auto Maker Co', 'Trailer' 270 | 'LRP', 'Chongqing Rato Power Co. Ltd.', 'ATVs, Motorcycles' 271 | 'LRY', 'Chongqing Guangyu Motorcycle Manufacture', 'Motorcycle' 272 | 'LS4', 'Chongqing Changan Automobile Co Ltd', 'Bus, Incomplete Vehicle' 273 | 'LS5', 'Chongqing Changan Automobile Co Ltd', 'Passenger Car' 274 | 'LS6', 'Chongqing Changan Automobile Co Ltd', 'Passenger Car' 275 | 'LS9', 'Shandong Hongda Construction Machine', 'Truck' 276 | 'LSC', 'Chongqing Changan Automobile Co Ltd', 'Truck, Incomplete Vehicle, Trailer, Low-speed Goods Vehicle' 277 | 'LSL', 'Chongqing Changan Automobile Co Ltd', 'Truck, Incomplete Vehicle, Trailer, Low-speed Goods Vehicle' 278 | 'LSN', 'Shandong Zhongqi Motorcycle (Group) Manu', 'Motorcycle' 279 | 'LSP', 'Jinan Zhonglu Special Automobile Co Ltd', 'Truck, Trailer' 280 | 'LSR', 'Chongqing Hi-Bird Motorcycle Industry Co', 'Motorcycle' 281 | 'LT7', 'Hebei Hongda Special Purpose Vehicle Mfg', 'Truck, Trailer' 282 | 'LTA', 'Hebei Zhongxing Automobile Co Ltd', 'Truck, Bus (Special Bus)' 283 | 'LTE', 'Chongqing Charming Motorcycle Mfg Co Ltd', 'ATV' 284 | 'LTM', 'Sundiro Honda Motorcycle Co Ltd', 'Motorcycle, Moped' 285 | 'LTX', 'Tianjin Zhongyang Xunda Motor Co Ltd', 'Motorcycles' 286 | 'LTZ', 'Foshan Nanhai Zhongmo Science & Tech', 'Motorcycles' 287 | 'LUA', 'Chongqing Hensim Group Co Ltd', 'Motorcycles' 288 | 'LUC', 'Honda Automobile (China) Co Ltd.', 'Passenger Car' 289 | 'LUH', 'Wuxi Hongyan Motorcycle Limited Company', 'Motorcycle' 290 | 'LVH', 'Dongfeng Honda Automobile Co Ltd', 'Passenger Car, Bus' 291 | 'LW8', 'Chongqing Wanhu Mechanical & Electrical', 'Motorcycle, ATV' 292 | 'LWB', 'Wuyang-Honda Motors (Guangzhou) Co Ltd', 'Motorcycle, Moped' 293 | 'LWG', 'Chongqing Huansong Industries Group Co', 'Motorcycle, ATV' 294 | 'LWM', 'Chongqing Wonjan Motorcycle Mfg Co Ltd', 'Motorcycle' 295 | 'LX8', 'Chongqing Xgjao Motorcycle Co Ltd', 'Motorcycle, Moped' 296 | 'LXC', 'Chongqing Tiema Industries Corporation', 'Truck, Trailer, Incomplete Vehicle' 297 | 'LXY', 'Chongqing Shineray Motorcycle Co Ltd', 'Motorcycle' 298 | 'LY0', 'Jiangsu Hongzhou Jinfu Vehicle Co. Ltd.', 'Motorcycle, ATV' 299 | 'LY3', 'Zhongyou Special Vehicle Corp Ltd.', 'Trailer, Truck' 300 | 'LY4', 'Chongqing Yingang Science & Tech Group', 'Motorcycle, Moped' 301 | 'LYE', 'Chongqing Kaler Motorcycle Mfg Co Ltd', 'Motorcycles' 302 | 'LYJ', 'Beijing ZhongdaYanjing Auto Co Ltd', 'Bus, Incomplete Vehicle' 303 | 'LYR', 'Chongqing Shuangqing Mechanical &', 'Motorcycle' 304 | 'LZ6', 'Foshan Zhongfo Special Automobile Works', 'Bus, Truck' 305 | 'LZF', 'Chongqing Hongyan Motor Co Ltd', 'Truck,Bus,Trailer,Incomplete Vehicl' 306 | 'LZP', 'Zhongshan Guochi Motorcycle Industrial C', 'Motorcycles' 307 | 'LZX', 'Chongqing Shuangqing Mech & Elect Co Ltd', 'Motorcycle' 308 | 'MAK', 'Honda Siel Cars India Ltd', 'Car' 309 | 'ME4', 'Honda Motorcycle & Scooter India Pvt Ltd', 'Two Wheelers' 310 | 'MLH', 'Thai Honda Manufacturing Co Ltd', '' 311 | 'MRH', 'Honda Automobile (Thailand) Co Ltd', 'Passenger Cars' 312 | 'MS8', 'Tan Chong Motor (Myanmar) Co Ltd', 'Passenger Car' 313 | 'NFB', 'Honda Atlas Cars Pakistan Ltd', 'Passenger Cars' 314 | 'NLA', 'Honda Turkiye AS', '' 315 | 'NMH', 'Honda Anadolu Motosiklet', '' 316 | 'NS5', 'The Hong Da Group LLC', 'Motorcycles, three wheeled cargo' 317 | 'NS6', 'The Hong Xiang Group LLC', 'Motorcycles, scooters, mopeds' 318 | 'PAD', 'Honda Cars Philippines Inc', 'Passenger Cars' 319 | 'PMH', 'Honda Malaysia Sdn Bhd', 'Passenger Cars & Multi Purpose Veh.' 320 | 'PMK', 'Boon Siew Honda Sdn Bhd', 'PMK' 321 | 'PMY', 'Hong Leong Yamaha Motor Sdn.Bhd', 'Motorcycles & Mopeds' 322 | 'PN6', 'Tan Chong Industrial Equipment Sdn. Bhd.', 'Light Duty Truck, Heavy Duty Truck, Bus' 323 | 'PN8', 'Tan Chong And Sons Motor Company Sdn Bhd', '' 324 | 'PND', 'Tan Chong And Sons Motor Company Sdn Bhd', 'Trucks And Buses' 325 | 'PS0', 'Bangladesh Honda Private Limited', 'Motorcycles' 326 | 'R12', 'XINRI E-vehicle Hong Kong Co. Ltd.', 'E-scooter, quadricycle, motorcycle' 327 | 'R13', 'HK Hongchang Industrial Limited', 'e-motor, motorcycles' 328 | 'R17', 'HongKong Brother Traffic Tech. Grp Co Lt', 'Motorcycles' 329 | 'R18', 'HongKong Yuanming Vehicle Co. Ltd.', 'Motorcycles' 330 | 'R1A', 'JHC New Energy Vehicle HongKong Co Ltd', 'Motorcycles, quadricycle, E-Scooter' 331 | 'R1B', 'JHC New Energy Vehicle HongKong Co Ltd', 'Passenger Car' 332 | 'R1C', 'TAIQI Hong Kong Electric Vehicle Co Ltd', 'Electric Vehicles' 333 | 'R1D', 'HongKong Lider Vehicle Co. Ltd.', 'Electric Vehicles' 334 | 'R1J', 'China Jiayuan Power (Hongkong) Limited', 'Motorcycles, quadricycle, E-scooter' 335 | 'R1K', 'Aierma (Hong Kong) Technology Comp. Ltd.', 'Elec. Motorcycles, Elec. Bikes' 336 | 'R1L', 'China Jiayuan Power (Hongkong) Limited', 'Trucks' 337 | 'R1M', 'Chongqing Senda Technologies Co. Limited', 'Motorcycles' 338 | 'R1P', 'Yangzhou Vulcan (Hongkong) Machinery', 'Trailers' 339 | 'R1R', 'Dongma Vehicle Hongkong Co Limited', 'Motorcycles, e-scooter, quadricycle' 340 | 'R1U', 'Somoto (HongKong) Motorcycle Co Ltd', 'e-bike, motorcycles' 341 | 'R1V', 'Rongcheng Compaks (Hong Kong) New Energy', 'Trailers' 342 | 'R26', 'Taihong Technology Limited', 'Motorcycles' 343 | 'R27', 'Hong Kong CHJ Automotive Technology Ltd', 'Motorcycles, two, three and four wheel' 344 | 'R28', 'HongKong Forethought Industry Co Ltd.', 'Motorcycles' 345 | 'R2B', 'HongKong Ruipeng Power Technology Ltd', 'Motorcycles, two, three, four wheel' 346 | 'R2C', 'HongKong Top Outdoor Sports Technology', 'Motorcycles, two, three and four wheel' 347 | 'R2L', 'Hongdu Electric Vehicle Hongkong Co.', 'Motorcycles, e-scooter, quadricycle' 348 | 'R2R', 'Huangzhonghuang Vehicle Industry Co. Ltd', 'Motorcycles' 349 | 'R2Y', 'HL Corp (Hong Kong) Limited', 'Motorcycles' 350 | 'R30', 'HongKong Qinglan New Energy Vehicle', 'Motorcycles, two, three and four wheel' 351 | 'RKT', 'Honda Taiwan Co Ltd', 'Multi-Purpose Veh & Passenger Cars' 352 | 'RLH', 'Honda Vietnam Company Ltd', 'Motorcycles' 353 | 'SHH', 'Honda UK Ltd', 'Motor Vehicles' 354 | 'SHJ', 'Honda of the UK Mfg Ltd', '' 355 | 'SHR', 'Honda UK Ltd', 'Motor Vehicles' 356 | 'SHS', 'Honda of the UK Mfg Ltd', '' 357 | 'TX9', 'Jorge Honorio Da Silva & Filho LDA', 'Trailer, Recreational, Commercial' 358 | 'VF9', 'Ampa Rhone', 'Remorques' 359 | 'VF9', 'Jacky Pichon', 'Cycles' 360 | 'VF9', 'Stey-Motos Honda', 'Motos' 361 | 'VF9', 'Ste Gaston Reverchon Industries', 'Vehicules' 362 | 'VF9', 'Etablisements Claude Mathon', 'Remorques' 363 | 'VF9', 'Reverchon Sud', 'Vehicules 113 Routiers' 364 | 'VF9', 'Megaphone France', 'Vehicules Routiers Agricole' 365 | 'VTD', 'Montesa Honda SA', '' 366 | 'VTM', 'Montesa Honda SA', '' 367 | 'W09', 'Leo Honold Kg Frahrzeugbau', 'Anhanger' 368 | 'X89', 'Sergo Ordzhonikidze', '' 369 | 'X9D', 'Scientific Prod Assoc Athon-Impulse', '' 370 | 'XL9', 'Anthon Schalkers Aanhangwagens Oegstgees', '' 371 | 'YA9', 'Ets F Honnorez', 'Commercial Trailers' 372 | 'YC1', 'Honda Belgium NV', '' 373 | 'YG9', 'Honkalammen KyKiteen Teekoo-Tuote', 'Light Trailers' 374 | 'YG9', 'Honkalampi Saatio', 'O1' 375 | 'YGE', 'Honkalampi-Saatio', 'Trailers O1, O2' 376 | 'ZDC', 'Honda Italia Industriales SpA', '' 377 | */ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 6 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 7 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= 8 | cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= 9 | cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= 10 | cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= 11 | cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= 12 | cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= 13 | cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= 14 | cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= 15 | cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= 16 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 17 | cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= 18 | cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= 19 | cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= 20 | cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= 21 | cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= 22 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 23 | cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= 24 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 25 | cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= 26 | cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= 27 | cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= 28 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 29 | cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= 30 | cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= 31 | cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= 32 | cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= 33 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 34 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 35 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 36 | github.com/auth0/go-jwt-middleware v0.0.0-20200810150920-a32d7af194d1 h1:lnVadil6o8krZE47ms2PCxhXcki/UwoqiB0axOIV3mk= 37 | github.com/auth0/go-jwt-middleware v0.0.0-20200810150920-a32d7af194d1/go.mod h1:mF0ip7kTEFtnhBJbd/gJe62US3jykNN+dcZoZakJCCA= 38 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 39 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 40 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 41 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 42 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 43 | github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= 44 | github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM= 45 | github.com/coreos/go-oidc v2.2.1+incompatible h1:mh48q/BqXqgjVHpy2ZY7WnWAbenxRjsz9N1i1YxjHAk= 46 | github.com/coreos/go-oidc v2.2.1+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= 47 | github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= 48 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 49 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 50 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 51 | github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= 52 | github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= 53 | github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 54 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 55 | github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= 56 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 57 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 58 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 59 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 60 | github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8= 61 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 62 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 63 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 64 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 65 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 66 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 67 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 68 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 69 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 70 | github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 71 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= 72 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 73 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 74 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 75 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 76 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 77 | github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= 78 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 79 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 80 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 81 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 82 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 83 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 84 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 85 | github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= 86 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 87 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 88 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 89 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 90 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 91 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 92 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 93 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 94 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 95 | github.com/google/go-cmp v0.5.1 h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k= 96 | github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 97 | github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= 98 | github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 99 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 100 | github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 101 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 102 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 103 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 104 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 105 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 106 | github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 107 | github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 108 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 109 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 110 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 111 | github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= 112 | github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 h1:l5lAOZEym3oK3SQ2HBHWsJUfbNBiTXJDeW2QDxw9AQ0= 113 | github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= 114 | github.com/gorilla/mux v1.7.4 h1:VuZ8uybHlWmqV03+zRzdwKL4tUnIp1MAQtp1mIFE1bc= 115 | github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= 116 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 117 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 118 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 119 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 120 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 121 | github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= 122 | github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= 123 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 124 | github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= 125 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 126 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 127 | github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= 128 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 129 | github.com/louisevanderlith/droxolite v1.20.2 h1:c8BE8x7BxZq0R6E1PVQCTtKHU0c7p3tLL7JdU7Qa8GA= 130 | github.com/louisevanderlith/droxolite v1.20.2/go.mod h1:mpVaXNgNd1rrSex8eH8Fllx+aRr6DPgGsNhJI6j6ftE= 131 | github.com/louisevanderlith/husk v1.7.6 h1:etAg02vmiMWbGwifm1OgcjBk8nZUiArzt9+0KU2nUMs= 132 | github.com/louisevanderlith/husk v1.7.6/go.mod h1:iEFeOL3LmBuXlHl3lhiq8yDfob2CNbv+p23ZjP5DORU= 133 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 134 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 135 | github.com/pquerna/cachecontrol v0.0.0-20200921180117-858c6e7e6b7e h1:BLqxdwZ6j771IpSCRx7s/GJjXHUE00Hmu7/YegCGdzA= 136 | github.com/pquerna/cachecontrol v0.0.0-20200921180117-858c6e7e6b7e/go.mod h1:hoLfEwdY11HjRfKFH6KqnPsfxlo3BP6bJehpDv8t6sQ= 137 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 138 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 139 | github.com/rs/cors v1.7.0 h1:+88SsELBHx5r+hZ8TCkggzSstaWNbDvThkVK8H6f9ik= 140 | github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= 141 | github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= 142 | github.com/smartystreets/assertions v1.1.0 h1:MkTeG1DMwsrdH7QtLXy5W+fUxWq+vmb6cLmyJ7aRtF0= 143 | github.com/smartystreets/assertions v1.1.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= 144 | github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= 145 | github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= 146 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 147 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 148 | github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= 149 | github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 150 | github.com/urfave/negroni v1.0.0 h1:kIimOitoypq34K7TG7DUaJ9kq/N4Ofuwi1sjz0KipXc= 151 | github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= 152 | github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 153 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 154 | github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 155 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 156 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 157 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 158 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 159 | go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 160 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 161 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 162 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 163 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 164 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 165 | golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNmw2api+jEfxLoykJVice/E= 166 | golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 167 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 168 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 169 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 170 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 171 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 172 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 173 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 174 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 175 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= 176 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= 177 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 178 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 179 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 180 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 181 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 182 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 183 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 184 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 185 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 186 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 187 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 188 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 189 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 190 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 191 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 192 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 193 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 194 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 195 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 196 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 197 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 198 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 199 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 200 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 201 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 202 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 203 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 204 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 205 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 206 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 207 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 208 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 209 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 210 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 211 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 212 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 213 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 214 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 215 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 216 | golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 217 | golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 218 | golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 219 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 220 | golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 221 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 222 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 223 | golang.org/x/net v0.0.0-20201022231255-08b38378de70 h1:Z6x4N9mAi4oF0TbHweCsH618MO6OI6UFgV0FP5n0wBY= 224 | golang.org/x/net v0.0.0-20201022231255-08b38378de70/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 225 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 226 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 227 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 228 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 229 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 230 | golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43 h1:ld7aEMNHoBnnDAX15v1T6z31v8HwR2A9FYOuAhWqkwc= 231 | golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 232 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 233 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 234 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 235 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 236 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 237 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 238 | golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 239 | golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 240 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 241 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 242 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 243 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 244 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 245 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 246 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 247 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 248 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 249 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 250 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 251 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 252 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 253 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 254 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 255 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 256 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 257 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 258 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 259 | golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 260 | golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 261 | golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 262 | golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 263 | golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 264 | golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 265 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 266 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 267 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 268 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 269 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 270 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 271 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 272 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 273 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 274 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 275 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 276 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 277 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 278 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 279 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 280 | golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 281 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 282 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 283 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 284 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 285 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 286 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 287 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 288 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 289 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 290 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 291 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 292 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 293 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 294 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 295 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 296 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 297 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 298 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 299 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 300 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 301 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 302 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 303 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 304 | golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 305 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 306 | golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 307 | golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= 308 | golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 309 | golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 310 | golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 311 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 312 | golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 313 | golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 314 | golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 315 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 316 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 317 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 318 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= 319 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 320 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 321 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 322 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 323 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 324 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 325 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 326 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 327 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 328 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 329 | google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 330 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 331 | google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 332 | google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 333 | google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 334 | google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= 335 | google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= 336 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 337 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 338 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 339 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 340 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 341 | google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 342 | google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= 343 | google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 344 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 345 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 346 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 347 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 348 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 349 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 350 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 351 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 352 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 353 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 354 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 355 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 356 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 357 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 358 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= 359 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 360 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 361 | google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 362 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 363 | google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 364 | google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 365 | google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 366 | google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 367 | google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= 368 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 369 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= 370 | google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 371 | google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 372 | google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 373 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 374 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 375 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 376 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 377 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= 378 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 379 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 380 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 381 | google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= 382 | google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= 383 | google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 384 | google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 385 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 386 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 387 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 388 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 389 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 390 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 391 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 392 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 393 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 394 | google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= 395 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 396 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 397 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= 398 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 399 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 400 | gopkg.in/square/go-jose.v2 v2.5.1 h1:7odma5RETjNHWJnR32wx8t+Io4djHE1PqxCFx3iiZ2w= 401 | gopkg.in/square/go-jose.v2 v2.5.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= 402 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 403 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= 404 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 405 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 406 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 407 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 408 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 409 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 410 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 411 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 412 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 413 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 414 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 415 | --------------------------------------------------------------------------------