This repository was archived by the owner on Jan 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconst.go
61 lines (56 loc) · 1.35 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package tarantool
// Request code possible values.
const (
SelectRequest = 1
InsertRequest = 2
ReplaceRequest = 3
UpdateRequest = 4
DeleteRequest = 5
AuthRequest = 7
EvalRequest = 8
UpsertRequest = 9
Call17Request = 10
PingRequest = 64
)
// Key possible values.
const (
KeyCode = 0x00
KeySync = 0x01
KeySpaceNo = 0x10
KeyIndexNo = 0x11
KeyLimit = 0x12
KeyOffset = 0x13
KeyIterator = 0x14
KeyKey = 0x20
KeyTuple = 0x21
KeyFunctionName = 0x22
KeyUserName = 0x23
KeyExpression = 0x27
KeyDefTuple = 0x28
KeyData = 0x30
KeyError = 0x31
KeyPush = 0x80
)
// Iter op possible values.
const (
IterEq = uint32(0) // key == x ASC order
IterReq = uint32(1) // key == x DESC order
IterAll = uint32(2) // all tuples
IterLt = uint32(3) // key < x
IterLe = uint32(4) // key <= x
IterGe = uint32(5) // key >= x
IterGt = uint32(6) // key > x
IterBitsAllSet = uint32(7) // all bits from x are set in key
IterBitsAnySet = uint32(8) // at least one x's bit is set
IterBitsAllNotSet = uint32(9) // all bits are not set
)
// RLimit possible values.
const (
RLimitDrop = 1
RLimitWait = 2
)
// response related const.
const (
okCode = uint32(0)
errorCodeBit = 0x8000
)