common.go 429 B

123456789101112131415161718192021222324
  1. package v1
  2. // UnknownID is the ID for unknowns.
  3. const UnknownID = -1
  4. // RowStatus is the status for a row.
  5. type RowStatus string
  6. const (
  7. // Normal is the status for a normal row.
  8. Normal RowStatus = "NORMAL"
  9. // Archived is the status for an archived row.
  10. Archived RowStatus = "ARCHIVED"
  11. )
  12. func (e RowStatus) String() string {
  13. switch e {
  14. case Normal:
  15. return "NORMAL"
  16. case Archived:
  17. return "ARCHIVED"
  18. }
  19. return ""
  20. }