Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL string UserAgent string HTTPClient }
func NewClient ¶
func NewClient(cfg Config, HTTPClient HTTPClient) *Client
type Forecast ¶
type Forecast struct { Type string `json:"type"` Geometry Geometry `json:"geometry"` Properties Properties `json:"properties"` }
type ForecastDetails ¶
type ForecastDetails struct { AirPressureAtSeaLevel float64 `json:"air_pressure_at_sea_level"` AirTemperature float64 `json:"air_temperature"` AirTemperature10Percentile float64 `json:"air_temperature_percentile_10"` AirTemperature90Percentile float64 `json:"air_temperature_percentile_90"` CloudAreaFraction float64 `json:"cloud_area_fraction"` CloudAreaFractionHigh float64 `json:"cloud_area_fraction_high"` CloudAreaFractionLow float64 `json:"cloud_area_fraction_low"` CloudAreaFractionMedium float64 `json:"cloud_area_fraction_medium"` DewPointTemperature float64 `json:"dew_point_temperature"` FogAreaFraction float64 `json:"fog_area_fraction"` RelativeHumidity float64 `json:"relative_humidity"` UltraVioletIndexClearSky float64 `json:"ultraviolet_index_clear_sky"` WindFromDirection float64 `json:"wind_from_direction"` WindSpeed float64 `json:"wind_speed"` WindSpeedOfGust float64 `json:"wind_speed_of_gust"` WindSpeed10Percentile float64 `json:"wind_speed_percentile_10"` WindSpeed90Percentile float64 `json:"wind_speed_percentile_90"` }
type Properties ¶
type Properties struct { Meta struct { Updated_at time.Time `json:"updated_at"` Units map[string]string `json:"units"` } `json:"meta"` Timeseries []struct { Time time.Time `json:"time"` Data struct { Instant struct { Details ForecastDetails `json:"details"` } `json:"instant"` } `json:"data"` } `json:"timeseries"` }
Click to show internal directories.
Click to hide internal directories.