Skip to content

Commit

Permalink
Merge pull request #2531 from alicebob/txntypes
Browse files Browse the repository at this point in the history
fix KVOp types
  • Loading branch information
slackpad authored Dec 1, 2016
2 parents a6bb339 + 92b2369 commit 0282dd9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions api/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@ type KVOp string

const (
KVSet KVOp = "set"
KVDelete = "delete"
KVDeleteCAS = "delete-cas"
KVDeleteTree = "delete-tree"
KVCAS = "cas"
KVLock = "lock"
KVUnlock = "unlock"
KVGet = "get"
KVGetTree = "get-tree"
KVCheckSession = "check-session"
KVCheckIndex = "check-index"
KVDelete KVOp = "delete"
KVDeleteCAS KVOp = "delete-cas"
KVDeleteTree KVOp = "delete-tree"
KVCAS KVOp = "cas"
KVLock KVOp = "lock"
KVUnlock KVOp = "unlock"
KVGet KVOp = "get"
KVGetTree KVOp = "get-tree"
KVCheckSession KVOp = "check-session"
KVCheckIndex KVOp = "check-index"
)

// KVTxnOp defines a single operation inside a transaction.
type KVTxnOp struct {
Verb string
Verb KVOp
Key string
Value []byte
Flags uint64
Expand Down

0 comments on commit 0282dd9

Please sign in to comment.