protocol.go 416 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package protocol
  2. type Command uint8
  3. type Result uint8
  4. const (
  5. // Level 0
  6. Quit Command = iota
  7. Set
  8. Get
  9. Delete
  10. Flush_all
  11. // Level 1
  12. Stats
  13. Verbosity
  14. Version
  15. // Level 2
  16. Touch
  17. Incr
  18. Decr
  19. Append
  20. Prepend
  21. Add
  22. Replace
  23. // Level 3
  24. Cas
  25. Gets
  26. // Level 4
  27. Slab_automove
  28. Slabs_reassign
  29. )
  30. const (
  31. Stored Result = iota // set
  32. NotStored // set
  33. Exists // set
  34. NotFound // get, delete
  35. Deleted // delete
  36. )