diff options
Diffstat (limited to 'internal/calfeed/calfeed.go')
| -rw-r--r-- | internal/calfeed/calfeed.go | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/internal/calfeed/calfeed.go b/internal/calfeed/calfeed.go new file mode 100644 index 0000000..cb2a8ff --- /dev/null +++ b/internal/calfeed/calfeed.go @@ -0,0 +1,30 @@ +package calfeed + +type ReadingView struct { + Part string `json:"part"` + Citation string `json:"citation"` +} + +type CelView struct { + Slug string `json:"slug"` + Name string `json:"name"` + Rank string `json:"rank"` + Class int `json:"class"` +} + +type DayView struct { + Date string `json:"date"` // YYYY-MM-DD + Season string `json:"season"` + Week int `json:"week"` + Weekday string `json:"weekday"` + Colour string `json:"colour"` + Observed CelView `json:"observed"` + Others []CelView `json:"others"` + Cycles Cycles `json:"cycles"` + Readings []ReadingView `json:"readings"` +} + +type Cycles struct { + Sunday string `json:"sunday"` + Weekday string `json:"weekday"` +} |
