@@ -4,12 +4,36 @@ import (
4
4
"gopkg.in/vmihailenco/msgpack.v2"
5
5
)
6
6
7
+ // RefImplPingBody is reference implementation for filling of a ping
8
+ // request's body.
9
+ func RefImplPingBody (enc * msgpack.Encoder ) error {
10
+ return fillPing (enc )
11
+ }
12
+
7
13
// RefImplSelectBody is reference implementation for filling of a select
8
14
// request's body.
9
15
func RefImplSelectBody (enc * msgpack.Encoder , space , index , offset , limit , iterator uint32 , key interface {}) error {
10
16
return fillSelect (enc , space , index , offset , limit , iterator , key )
11
17
}
12
18
19
+ // RefImplInsertBody is reference implementation for filling of an insert
20
+ // request's body.
21
+ func RefImplInsertBody (enc * msgpack.Encoder , space uint32 , tuple interface {}) error {
22
+ return fillInsert (enc , space , tuple )
23
+ }
24
+
25
+ // RefImplReplaceBody is reference implementation for filling of a replace
26
+ // request's body.
27
+ func RefImplReplaceBody (enc * msgpack.Encoder , space uint32 , tuple interface {}) error {
28
+ return fillInsert (enc , space , tuple )
29
+ }
30
+
31
+ // RefImplDeleteBody is reference implementation for filling of a delete
32
+ // request's body.
33
+ func RefImplDeleteBody (enc * msgpack.Encoder , space , index uint32 , key interface {}) error {
34
+ return fillDelete (enc , space , index , key )
35
+ }
36
+
13
37
// RefImplUpdateBody is reference implementation for filling of an update
14
38
// request's body.
15
39
func RefImplUpdateBody (enc * msgpack.Encoder , space , index uint32 , key , ops interface {}) error {
@@ -21,3 +45,21 @@ func RefImplUpdateBody(enc *msgpack.Encoder, space, index uint32, key, ops inter
21
45
func RefImplUpsertBody (enc * msgpack.Encoder , space uint32 , tuple , ops interface {}) error {
22
46
return fillUpsert (enc , space , tuple , ops )
23
47
}
48
+
49
+ // RefImplCallBody is reference implementation for filling of a call or call17
50
+ // request's body.
51
+ func RefImplCallBody (enc * msgpack.Encoder , function string , args interface {}) error {
52
+ return fillCall (enc , function , args )
53
+ }
54
+
55
+ // RefImplEvalBody is reference implementation for filling of an eval
56
+ // request's body.
57
+ func RefImplEvalBody (enc * msgpack.Encoder , expr string , args interface {}) error {
58
+ return fillEval (enc , expr , args )
59
+ }
60
+
61
+ // RefImplExecuteBody is reference implementation for filling of an execute
62
+ // request's body.
63
+ func RefImplExecuteBody (enc * msgpack.Encoder , expr string , args interface {}) error {
64
+ return fillExecute (enc , expr , args )
65
+ }
0 commit comments