Files
weatherfeeder/internal/model/forecast.go

16 lines
601 B
Go
Raw Normal View History

// FILE: internal/model/forecast.go
package model
import "time"
// WeatherForecast identity fields (as you described).
type WeatherForecast struct {
IssuedBy string `json:"issuedBy,omitempty"` // e.g. "NWS"
IssuedAt time.Time `json:"issuedAt"` // when forecast product was issued
ForecastType string `json:"forecastType,omitempty"` // e.g. "hourly", "daily"
ForecastStart time.Time `json:"forecastStart"` // start of the applicable forecast period
// TODO: You’ll likely want ForecastEnd too.
// TODO: Add meteorological fields you care about.
}