weatherfeeder: split the former maximumdirect.net/weatherd project in two.
feedkit now contains a reusable core, while weatherfeeder is a concrete implementation that includes weather-specific functions.
This commit is contained in:
17
internal/model/forecast.go
Normal file
17
internal/model/forecast.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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.
|
||||
}
|
||||
Reference in New Issue
Block a user