common.go 465 B

123456789101112131415161718192021222324
  1. package store
  2. import "google.golang.org/protobuf/encoding/protojson"
  3. var (
  4. protojsonUnmarshaler = protojson.UnmarshalOptions{
  5. AllowPartial: true,
  6. DiscardUnknown: true,
  7. }
  8. )
  9. // RowStatus is the status for a row.
  10. type RowStatus string
  11. const (
  12. // Normal is the status for a normal row.
  13. Normal RowStatus = "NORMAL"
  14. // Archived is the status for an archived row.
  15. Archived RowStatus = "ARCHIVED"
  16. )
  17. func (r RowStatus) String() string {
  18. return string(r)
  19. }