go-pb-jubilee/structs/globalstructs.go

80 lines
2.3 KiB
Go
Raw Normal View History

2024-08-27 23:24:33 +00:00
package structs
type LL struct {
Ll string `json:"ll" form:"ll"`
}
type LatLong struct {
Lat float64 `json:"lat" form:"lat"`
Long float64 `json:"long" form:"long"`
}
type FormattedLocation struct {
Lat float64 `db:"lat" json:"lat" form:"lat"`
Long float64 `json:"long" form:"long" db:"long"`
Country string `json:"country" db:"country"`
City string `json:"city" db:"city"`
State string `json:"state" db:"state"`
Zipcode string `json:"zipcode" db:"zipcode"`
StreetName string `json:"streetName" db:"streetName"`
CountryCode string `json:"countryCode" db:"countryCode"`
County string `json:"county" db:"county"`
Neighbourhood string `json:"neighbourhood" db:"neighbourhood"`
Village string `json:"village" db:"village"`
Formatted string `json:"formatted" db:"formatted"`
}
type FormattedWeather struct {
Lat float64 `db:"lat" json:"lat" form:"lat"`
Long float64 `json:"long" form:"long" db:"long"`
Type string `json:"type" form:"type" db:"type"`
Data string `json:"data" db:"data"`
Ts int64 `db:"ts" json:"ts"`
}
type Bob struct {
Bob string `json:"bob" form:"bob"`
}
// TempMax / TempMin from daily.data[0] the daily entry for the current day
type ForecastSummary struct {
Summary string `json:"summary"`
TempMax float64 `json:"tempMax"`
TempMin float64 `json:"tempMin"`
Temperature float64 `json:"temperature"`
Icon string `json:"icon"`
}
type ForecastHour struct {
Time int64 `json:"time"`
Icon string `json:"icon"`
Temp float64 `json:"temp"`
}
type ForecastDay struct {
Time int64 `json:"time"`
Icon string `json:"icon"`
TempHigh float64 `json:"tempHigh"`
TempLow float64 `json:"tempLow"`
}
type ForecastDetails struct {
Humidity float64 `json:"humidity"`
Visibility float64 `json:"visibility"`
UvIndex float64 `json:"uvIndex"`
Summary string `json:"summary"`
WindSpeed float64 `json:"windSpeed"`
Pressure float64 `json:"pressure"`
SunriseTime int64 `json:"sunriseTime"`
SunsetTime int64 `json:"sunsetTime"`
Moonphase float64 `json:"moonphase"`
}
type ForecastRecord struct {
Currently ForecastSummary `json:"currently"`
ForcastToday []ForecastHour `json:"forcastToday"`
DailyForecast []ForecastDay `json:"dailyForecast"`
Details ForecastDetails `json:"details"`
}