summaryrefslogtreecommitdiff
path: root/pkg/proto/kv/v1beta/kv.proto
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-09 20:26:18 +0300
committerGitHub <[email protected]>2021-06-09 20:26:18 +0300
commitb99bfbe21a0f44b1a16b9110d779719fc637127c (patch)
tree3aabdb96c86a59325d816ad64cabc967ef2c8f10 /pkg/proto/kv/v1beta/kv.proto
parent8fdf05d4f360a9f6344141b273eab9d6859470e0 (diff)
parent7665167623147403d575b7e2cf125073cbe6584d (diff)
#715 feat(protocol): use protobuf for the `kv` and `websockets` RPC callsv2.3.0-beta.3
#715 feat(protocol): use protobuf for the `kv` and `websockets` RPC calls
Diffstat (limited to 'pkg/proto/kv/v1beta/kv.proto')
-rw-r--r--pkg/proto/kv/v1beta/kv.proto9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkg/proto/kv/v1beta/kv.proto b/pkg/proto/kv/v1beta/kv.proto
index 1ec0e6b7..1e3b8177 100644
--- a/pkg/proto/kv/v1beta/kv.proto
+++ b/pkg/proto/kv/v1beta/kv.proto
@@ -3,7 +3,7 @@ syntax = "proto3";
package kv.v1beta;
option go_package = "./;kvv1beta";
-message Payload {
+message Request {
// could be an enum in the future
string storage = 1;
repeated Item items = 2;
@@ -11,7 +11,12 @@ message Payload {
message Item {
string key = 1;
- string value = 2;
+ bytes value = 2;
// RFC 3339
string timeout = 3;
}
+
+// KV response for the KV RPC methods
+message Response {
+ repeated Item items = 1;
+}