feedkit now contains a reusable core, while weatherfeeder is a concrete implementation that includes weather-specific functions.
18 lines
557 B
Go
18 lines
557 B
Go
package model
|
||
|
||
import "time"
|
||
|
||
// WeatherForecast identity fields (as you described).
|
||
type WeatherForecast struct {
|
||
IssuedBy string // e.g. "NWS"
|
||
IssuedAt time.Time // when forecast product was issued
|
||
ForecastType string // e.g. "hourly", "daily"
|
||
ForecastStart time.Time // start of the applicable forecast period
|
||
|
||
// TODO: You’ll likely want ForecastEnd too.
|
||
|
||
// TODO: Add meteorological fields you care about.
|
||
// Temperature, precip probability, wind, etc.
|
||
// Decide if you want a single "period" model or an array of periods.
|
||
}
|