Files
stufflog3/internal/models/status.go
T

30 lines
417 B
Go

package models
type Status int
func (s Status) Valid() bool {
return s >= 0 && s < maxStatus
}
const (
Blocked Status = iota
Available
Background
Active
Completed
Failed
Dropped
maxStatus
)
var StatusLabels = map[Status]string{
Blocked: "Blocked",
Available: "Available",
Background: "Background",
Active: "Active",
Completed: "Completed",
Failed: "Failed",
Dropped: "Dropped",
}