Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrentWeather ¶
type CurrentWeather struct { Dt int64 `json:"dt"` Sunrise int64 `json:"sunrise"` Sunset int64 `json:"sunset"` Temp decimal.Decimal `json:"temp"` FeelsLike decimal.Decimal `json:"feels_like"` Pressure int64 `json:"pressure"` Humidity int64 `json:"humidity"` DewPoint decimal.Decimal `json:"dew_point"` Uvi decimal.Decimal `json:"uvi"` Clouds int64 `json:"clouds"` Visibility int64 `json:"visibility"` WindSpeed decimal.Decimal `json:"wind_speed"` WindDeg int64 `json:"wind_deg"` Weather []Weather `json:"weather"` Rain map[string]decimal.Decimal `json:"rain"` }
type Daily ¶
type Daily struct { Dt int64 `json:"dt"` Sunrise int64 `json:"sunrise"` Sunset int64 `json:"sunset"` Moonrise int64 `json:"moonrise"` Moonset int64 `json:"moonset"` MoonPhase decimal.Decimal `json:"moon_phase"` Temp DayTemp `json:"temp"` FeelsLike DayFeelsLike `json:"feels_like"` Pressure int64 `json:"pressure"` Humidity int64 `json:"humidity"` DewPoint decimal.Decimal `json:"dew_point"` WindSpeed decimal.Decimal `json:"wind_speed"` WindDeg decimal.Decimal `json:"wind_deg"` Weather []Weather `json:"weather"` Clouds int64 `json:"clouds"` Pop decimal.Decimal `json:"pop"` Rain decimal.Decimal `json:"rain"` Uvi decimal.Decimal `json:"uvi"` }
type DayFeelsLike ¶
type Hourly ¶
type Hourly struct { Dt int64 `json:"dt"` Temp decimal.Decimal `json:"temp"` FeelsLike decimal.Decimal `json:"feels_like"` Pressure int64 `json:"pressure"` Humidity int64 `json:"humidity"` DewPoint decimal.Decimal `json:"dew_point"` Uvi decimal.Decimal `json:"uvi"` Clouds int64 `json:"clouds"` Visibility int64 `json:"visibility"` WindSpeed decimal.Decimal `json:"wind_speed"` WindDeg int64 `json:"wind_deg"` WindGust decimal.Decimal `json:"wind_gust"` Weather []Weather `json:"weather"` Pop decimal.Decimal `json:"pop"` }
type OneCallAPI ¶
func (OneCallAPI) OneCall ¶
func (api OneCallAPI) OneCall(lat, long decimal.Decimal, optionals ...OptionalParameter) (*OneCallResponse, error)
type OneCallResponse ¶
type OneCallResponse struct { Lat decimal.Decimal `json:"lat"` Lon decimal.Decimal `json:"lon"` Timezone string `json:"timezone"` TimezoneOffset int `json:"timezone_offset"` Current CurrentWeather `json:"current"` Minutely []Minutely `json:"minutely"` Hourly []Hourly `json:"hourly"` Daily []Daily `json:"daily"` Alerts []Alert `json:"alerts"` }
func OneCall ¶
func OneCall(lat, long decimal.Decimal, appId string, optionals ...OptionalParameter) (*OneCallResponse, error)
type OptionalParameter ¶
func Exclude ¶
func Exclude(excludes []string) OptionalParameter
func ImperialUnits ¶
func ImperialUnits() OptionalParameter
func Lang ¶
func Lang(lang string) OptionalParameter
func MetricUnits ¶
func MetricUnits() OptionalParameter
func StandardUnits ¶
func StandardUnits() OptionalParameter
Click to show internal directories.
Click to hide internal directories.