aboutsummaryrefslogtreecommitdiff
path: root/internal/liturgy
diff options
context:
space:
mode:
Diffstat (limited to 'internal/liturgy')
-rw-r--r--internal/liturgy/section.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/liturgy/section.go b/internal/liturgy/section.go
index dcca7b5..baf2b9d 100644
--- a/internal/liturgy/section.go
+++ b/internal/liturgy/section.go
@@ -33,4 +33,13 @@ type DayInfo struct {
// Colour is the normalized liturgical colour: "white", "green",
// "violet", "red", "rose", or "" when unknown/unmapped.
Colour string
+ // Rank is the normalized liturgical rank of the observed celebration:
+ // the Ordinary Form's "ferial", "optional", "memorial", "feast",
+ // "solemnity", or the 1962 form's "class-1".."class-4",
+ // "commemoration". The engine always supplies a rank: an unset or
+ // unrecognised rank on a sanctoral celebration defaults to "ferial"
+ // (calendar.buildCelebration), and every temporal-day constructor sets
+ // one explicitly. Consumers must not treat an empty Rank as meaning "no
+ // celebration".
+ Rank string
}