-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
38 lines (34 loc) · 1.46 KB
/
structs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package main
type DapnetSettings struct {
CallsignNames []string `yaml:"callsignNames"`
TransmitterGroupNames []string `yaml:"transmitterGroupNames"`
}
type Forecast struct {
Number int `mapstructure:"number"`
Name string `mapstructure:"name"`
StartTime string `mapstructure:"startTime"`
EndTime string `mapstructure:"endTime"`
IsDaytime bool `mapstructure:"isDaytime"`
Temperature int `mapstructure:"temperature"`
TemperatureUnit string `mapstructure:"temperatureUnit"`
TemperatureTrend *string `mapstructure:"temperatureTrend"`
WindSpeed string `mapstructure:"windSpeed"`
WindDirection string `mapstructure:"windDirection"`
Icon string `mapstructure:"icon"`
ShortForecast string `mapstructure:"shortForecast"`
DetailedForecast string `mapstructure:"detailedForecast"`
}
type Properties struct {
Updated string `mapstructure:"updated"`
Units string `mapstructure:"units"`
ForecastGenerator string `mapstructure:"forecastGenerator"`
GeneratedAt string `mapstructure:"generatedAt"`
UpdateTime string `mapstructure:"updateTime"`
ValidTimes string `mapstructure:"validTimes"`
ElevationData Elevation `mapstructure:"elevation"`
Periods []Forecast `mapstructure:"periods"`
}
type Elevation struct {
Value int `mapstructure:"value"`
UnitCode string `mapstructure:"unitCode"`
}