Documentation ¶
Index ¶
- func Avg(vals ...float32) float32
- type AirAndPollenValue
- type CurrentCondition
- type DailyForecast
- type Day
- type Direction
- type Forecast
- type ForecastService
- type GeoPositionResponse
- type GeoPositionService
- type MetricTemperature
- type MetricUnitValue
- type PrecipitationSummary
- type Temperature
- type TemperatureSummary
- type UnitValue
- type Wind
- type WindCurrent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AirAndPollenValue ¶
type CurrentCondition ¶
type CurrentCondition struct { LocalObservationDateTime time.Time Temperature MetricUnitValue TemperatureSummary TemperatureSummary RealFeelTemperature MetricUnitValue CloudCover float32 RelativeHumidity float32 Ice UnitValue RainProbability float32 Snow UnitValue Wind WindCurrent PrecipitationSummary PrecipitationSummary }
func (CurrentCondition) MapToPot ¶
func (f CurrentCondition) MapToPot() []models.Forecast
type DailyForecast ¶
type DailyForecast struct { AirAndPollen []AirAndPollenValue Date time.Time Day Day Night Day Temperature Temperature RealFeelTemperature Temperature }
type Forecast ¶
type Forecast struct {
DailyForecasts []DailyForecast
}
type ForecastService ¶
type ForecastService struct { Token string GeoPosition models.GeoPositionService }
type GeoPositionResponse ¶
type GeoPositionResponse struct {
Key string `json:"Key"`
}
type GeoPositionService ¶
type GeoPositionService struct {
Token string
}
type MetricTemperature ¶
type MetricTemperature struct { Maximum MetricUnitValue Minimum MetricUnitValue }
type MetricUnitValue ¶
type MetricUnitValue struct {
Metric UnitValue
}
type PrecipitationSummary ¶
type PrecipitationSummary struct {
Precipitation MetricUnitValue
}
type Temperature ¶
type TemperatureSummary ¶
type TemperatureSummary struct {
Past24HourRange MetricTemperature
}
type WindCurrent ¶
type WindCurrent struct { Direction Direction Speed MetricUnitValue }
Click to show internal directories.
Click to hide internal directories.