api.go 371 B

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