Skip to content

Commit

Permalink
update opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
kshvakov committed Sep 2, 2024
1 parent 4159521 commit 0907f3f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion protocol/opcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const (
Get Opcode = 0x00
Set = 0x01
Add = 0x02
Replace = 0x03
Delete = 0x04
Increment = 0x05
Decrement = 0x06
Expand All @@ -24,8 +23,20 @@ func (c Opcode) String() string {
return "get"
case Set:
return "set"
case Add:
return "add"
case Noop:
return "noop"
case GetKQ:
return "get_kq"
case Delete:
return "delete"
case Version:
return "version"
case Increment:
return "increment"
case Decrement:
return "decrement"
}
return fmt.Sprintf("undefined Opcode: %d", c)
}

0 comments on commit 0907f3f

Please sign in to comment.