Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct { HTTPCode int `json:"-"` Code int `json:"code,omitempty"` Message string `json:"message"` }
APIError is the error returned to clients whenever an internal error has happened.
type APIVehicle ¶
type APIVehicle struct { Hash string `json:"hash"` Country string `json:"country"` Type string `json:"type"` RegNr string `json:"regNr"` VIN string `json:"vin"` Brand string `json:"brand"` Model string `json:"model"` Variant string `json:"variant"` FuelType string `json:"fuelType"` FirstRegDate string `json:"firstRegDate"` FromCache bool `json:"fromCache"` }
APIVehicle is the API representation of Vehicle. It has a JSON representation. Some fields that are only for internal use, are left out, and others are converted into something more readable.
type WebServer ¶
type WebServer struct {
// contains filtered or unexported fields
}
WebServer represents the REST-API part of autobot.
Click to show internal directories.
Click to hide internal directories.