enbas/internal/model/timeline.go
Dan Anglin 3d20adfa57
chore: REUSE.toml
- Replace .reuse/dep5 with the new REUSE.toml file.
- Add licensing information to REUSE.toml and remove the licensing
  headers from the source files.
2024-08-01 04:01:38 +01:00

22 lines
488 B
Go

package model
const (
TimelineCategoryHome = "home"
TimelineCategoryPublic = "public"
TimelineCategoryTag = "tag"
TimelineCategoryList = "list"
)
type InvalidTimelineCategoryError struct {
Value string
}
func (e InvalidTimelineCategoryError) Error() string {
return "'" +
e.Value +
"' is not a valid timeline category (valid values are " +
TimelineCategoryHome + ", " +
TimelineCategoryPublic + ", " +
TimelineCategoryTag + ", " +
TimelineCategoryList + ")"
}