diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-27 21:25:43 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-27 21:25:43 +0200 |
| commit | 45e0b7652552867f7f99ffe22c968641510d5143 (patch) | |
| tree | b9a5d9aaabfd8b0932dbd012f7053e13b0df83ab /internal/calfeed/calfeed.go | |
| parent | 5ab5ff23417a80eb1b878329fd57828158bd4a31 (diff) | |
| download | lectio-45e0b7652552867f7f99ffe22c968641510d5143.tar.gz lectio-45e0b7652552867f7f99ffe22c968641510d5143.zip | |
feat(calfeed): day wire model + JSON renderer
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"` +} |
