enbas/internal/model/timeline.go
Dan Anglin 674f277eba
fix: add new type StatusList
Add a new type called StatusList for managing different types of status
lists in preparation for bookmark support. This replaces the Timeline
type.

Update timeline headers.
2024-06-03 03:54:27 +01:00

26 lines
605 B
Go

// SPDX-FileCopyrightText: 2024 Dan Anglin <d.n.i.anglin@gmail.com>
//
// SPDX-License-Identifier: GPL-3.0-or-later
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 + ")"
}