Loggest thy stuff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
417 B

  1. package models
  2. type Status int
  3. func (s Status) Valid() bool {
  4. return s >= 0 && s < maxStatus
  5. }
  6. const (
  7. Blocked Status = iota
  8. Available
  9. Background
  10. Active
  11. Completed
  12. Failed
  13. Dropped
  14. maxStatus
  15. )
  16. var StatusLabels = map[Status]string{
  17. Blocked: "Blocked",
  18. Available: "Available",
  19. Background: "Background",
  20. Active: "Active",
  21. Completed: "Completed",
  22. Failed: "Failed",
  23. Dropped: "Dropped",
  24. }