@@ -16,12 +16,36 @@ func SslCreateContext(opts SslOpts) (ctx interface{}, err error) {
16
16
return sslCreateContext (opts )
17
17
}
18
18
19
+ // RefImplPingBody is reference implementation for filling of a ping
20
+ // request's body.
21
+ func RefImplPingBody (enc * msgpack.Encoder ) error {
22
+ return fillPing (enc )
23
+ }
24
+
19
25
// RefImplSelectBody is reference implementation for filling of a select
20
26
// request's body.
21
27
func RefImplSelectBody (enc * msgpack.Encoder , space , index , offset , limit , iterator uint32 , key interface {}) error {
22
28
return fillSelect (enc , space , index , offset , limit , iterator , key )
23
29
}
24
30
31
+ // RefImplInsertBody is reference implementation for filling of an insert
32
+ // request's body.
33
+ func RefImplInsertBody (enc * msgpack.Encoder , space uint32 , tuple interface {}) error {
34
+ return fillInsert (enc , space , tuple )
35
+ }
36
+
37
+ // RefImplReplaceBody is reference implementation for filling of a replace
38
+ // request's body.
39
+ func RefImplReplaceBody (enc * msgpack.Encoder , space uint32 , tuple interface {}) error {
40
+ return fillInsert (enc , space , tuple )
41
+ }
42
+
43
+ // RefImplDeleteBody is reference implementation for filling of a delete
44
+ // request's body.
45
+ func RefImplDeleteBody (enc * msgpack.Encoder , space , index uint32 , key interface {}) error {
46
+ return fillDelete (enc , space , index , key )
47
+ }
48
+
25
49
// RefImplUpdateBody is reference implementation for filling of an update
26
50
// request's body.
27
51
func RefImplUpdateBody (enc * msgpack.Encoder , space , index uint32 , key , ops interface {}) error {
@@ -33,3 +57,21 @@ func RefImplUpdateBody(enc *msgpack.Encoder, space, index uint32, key, ops inter
33
57
func RefImplUpsertBody (enc * msgpack.Encoder , space uint32 , tuple , ops interface {}) error {
34
58
return fillUpsert (enc , space , tuple , ops )
35
59
}
60
+
61
+ // RefImplCallBody is reference implementation for filling of a call or call17
62
+ // request's body.
63
+ func RefImplCallBody (enc * msgpack.Encoder , function string , args interface {}) error {
64
+ return fillCall (enc , function , args )
65
+ }
66
+
67
+ // RefImplEvalBody is reference implementation for filling of an eval
68
+ // request's body.
69
+ func RefImplEvalBody (enc * msgpack.Encoder , expr string , args interface {}) error {
70
+ return fillEval (enc , expr , args )
71
+ }
72
+
73
+ // RefImplExecuteBody is reference implementation for filling of an execute
74
+ // request's body.
75
+ func RefImplExecuteBody (enc * msgpack.Encoder , expr string , args interface {}) error {
76
+ return fillExecute (enc , expr , args )
77
+ }
0 commit comments