hsc

package
v0.1.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API is wrapper to Head Service Center website.

func New

func New(uri string) *API

New creates an instance of API wrapper.

func (*API) VehiclePassport

func (api *API) VehiclePassport(code string) ([]Registration, error)

VehiclePassport sends GET request to Head Service Center. Code is identifier of vehicle registration certificate. Returns array of vehicles registration details.

type Registration

type Registration struct {
	Brand        string `json:"brand"`
	Capacity     string `json:"capacity"`
	Color        string `json:"color"`
	DFirstReg    string `json:"dFirstReg"`
	DReg         string `json:"dReg"`
	Fuel         string `json:"fuel"`
	Kind         string `json:"kind"`
	MakeYear     string `json:"makeYear"`
	Model        string `json:"model"`
	NDoc         string `json:"nDoc"`
	NRegNew      string `json:"nRegNew"`
	OwnWeight    string `json:"ownWeight"`
	RankCategory string `json:"rankCategory"`
	SDoc         string `json:"sDoc"`
	TotalWeight  string `json:"totalWeight"`
	VIN          string `json:"vin"`
}

Registration contains details of vehicle registration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL