Documentation ¶
Overview ¶
Package model provides the data models for the application.
Index ¶
Constants ¶
View Source
const ( // Created is the status for a created task. Created = Status("created") // Processing is the status for a processing task. Processing = Status("processing") // Done is the status for a done task. Done = Status("done") )
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("not found")
ErrNotFound is the error for not found.
View Source
var StatusMap = map[Status]bool{ Created: true, Processing: true, Done: true, }
StatusMap is a map of task status.
Functions ¶
func IsValidPriority ¶
func IsValidPriority(fl validator.FieldLevel) bool
IsValidPriority checks if the priority is valid (High, Medium, Low)
func IsValidStatus ¶
func IsValidStatus(fl validator.FieldLevel) bool
IsValidStatus checks if the status is valid (Created, Processing, Done)
Types ¶
type SQLite ¶
type SQLite struct {
DBFilename string `validate:"required"`
}
SQLite is the configuration for the SQLite database.
Click to show internal directories.
Click to hide internal directories.