Documentation ¶
Overview ¶
model/types.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DailyWeatherDetails ¶
type DestinationInfo ¶
type DestinationInfo struct { IATA string City string Country string SkyScannerURL string SkyScannerID string SkyScannerPrice float64 SkyScannerNextPrice float64 AirbnbURL string BookingURL string WPI float64 WeatherDetails []DailyWeatherDetails }
AirportInfo holds the details for an airport.
type OriginInfo ¶
type OriginInfo struct { IATA string City string Country string DepartureStartDate string DepartureEndDate string ArrivalStartDate string ArrivalEndDate string NextDepartureStartDate string NextDepartureEndDate string NextArrivalStartDate string NextArrivalEndDate string SkyScannerID string }
AirportInfo holds the details for an airport.
type PersistentPrices ¶
type PriceData ¶
type PriceData struct {
Price float64
}
PriceData now just holds the price, as the IDs are embedded in the key of the map.
type WeatherData ¶
type WeatherData struct { Dt int64 `json:"dt"` // Unix timestamp of the forecasted data Main struct { Temp float64 `json:"temp"` } `json:"main"` Wind struct { Speed float64 `json:"speed"` } `json:"wind"` Weather []struct { Main string `json:"main"` Description string `json:"description"` Icon string `json:"icon"` } `json:"weather"` }
Click to show internal directories.
Click to hide internal directories.