Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Car ¶
type Car struct { StoreID int64 `json:"store_id,omitempty" storm:"id"` InsertionDate time.Time `json:"insertion_date,omitempty"` Brand string `json:"brand,omitempty" storm:"index"` Model string `json:"model,omitempty" storm:"index"` Gearbox string `json:"gearbox,omitempty" storm:"index"` Fuel string `json:"fuel,omitempty" storm:"index"` Mileage int `json:"mileage,omitempty"` RegDate int `json:"reg_date,omitempty"` Price float64 `json:"price,omitempty"` ZipCode int `json:"zip_code,omitempty"` City string `json:"city,omitempty"` Department string `json:"department,omitempty"` Region string `json:"region,omitempty"` UploadType string `json:"upload_type,omitempty"` Title string `json:"title,omitempty"` BodyMD5 string `json:"body_md_5,omitempty"` WordCount int `json:"word_count,omitempty"` MaxListID int64 `json:"max_list_id,omitempty"` }
Car is a simple struct holding car information
func NewCarFromParameters ¶
func NewCarFromParameters(params dialogflow.CarSearchParameters) (*Car, error)
NewCarFromParameters returns a new car from dialogflow's parameters
func NewFromCSV ¶
NewFromCSV parses a single CSV line into an actual Car struct
func (Car) GetEstimate ¶
GetEstimate estimates the price of a car
Click to show internal directories.
Click to hide internal directories.