Files
weatherfeeder/model/weather_story.go
Eric Rakestraw fd820fd964
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
Implemented NWS weather stories support
2026-05-30 06:47:18 -05:00

29 lines
823 B
Go

package model
import "time"
// WeatherStoryRun is a snapshot of NWS weather stories for an office as-of a point in time.
type WeatherStoryRun struct {
OfficeID string `json:"officeId,omitempty"`
AsOf time.Time `json:"asOf"`
Stories []WeatherStory `json:"stories"`
}
// WeatherStory is a provider-independent representation of a single story card.
type WeatherStory struct {
OfficeID string `json:"officeId,omitempty"`
StartTime time.Time `json:"startTime"`
EndTime time.Time `json:"endTime"`
UpdatedAt time.Time `json:"updatedAt"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
AltText string `json:"altText,omitempty"`
Priority bool `json:"priority"`
Order int `json:"order"`
DownloadURL string `json:"downloadUrl,omitempty"`
}