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 (*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.
Click to show internal directories.
Click to hide internal directories.