Documentation ¶
Index ¶
- type API
- func (api *API) CarInfo(ID string) (car *CarInfo, err error)
- func (api *API) CarPhotos(ID string) (res *PhotosResponse, err error)
- func (api *API) ConvertNewToOld(values url.Values) (url.Values, error)
- func (api *API) ConvertOldToNew(values url.Values) (url.Values, error)
- func (api *API) SearchCars(values url.Values) (*SearchResponse, error)
- type Car
- type CarInfo
- type Photo
- type PhotosResponse
- type SearchResponse
- type SearchResultResponse
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
}
func (*API) ConvertNewToOld ¶
func (*API) ConvertOldToNew ¶
func (*API) SearchCars ¶
func (api *API) SearchCars(values url.Values) (*SearchResponse, error)
type Car ¶
type Car struct { Description string `json:"description"` Version string `json:"version"` OnModeration bool `json:"onModeration"` Year int `json:"year"` AutoID int `json:"autoId"` StatusID int `json:"statusId"` WithVideo bool `json:"withVideo"` Race string `json:"race"` RaceInt int `json:"raceInt"` FuelName string `json:"fuelName"` GearboxName string `json:"gearboxName"` IsSold bool `json:"isSold"` MainCurrency string `json:"mainCurrency"` CategoryID int `json:"categoryId"` }
type CarInfo ¶
type CarInfo struct { LocationCityName string `json:"locationCityName"` MarkName string `json:"markName"` MarkID uint32 `json:"markId"` ModelName string `json:"modelName"` ModelID uint32 `json:"modelId"` LinkToView string `json:"linkToView"` PriceUSD int64 `json:"USD"` PriceHRN int64 `json:"UAH"` PriceEUR int64 `json:"EUR"` Car Car `json:"autoData"` }
type Photo ¶
type PhotosResponse ¶
type SearchResponse ¶
type SearchResponse struct { Result struct { SearchResult SearchResultResponse `json:"search_result"` } `json:"result"` }
type SearchResultResponse ¶
Click to show internal directories.
Click to hide internal directories.