summaryrefslogtreecommitdiff
path: root/pkg/proto/kv/v1beta/kv.proto
blob: 1e3b81771aa2766362eee82d1e56bb2a2bec080e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
syntax = "proto3";

package kv.v1beta;
option go_package = "./;kvv1beta";

message Request {
    // could be an enum in the future
    string storage = 1;
    repeated Item items = 2;
}

message Item {
    string key = 1;
    bytes value = 2;
    // RFC 3339
    string timeout = 3;
}

// KV response for the KV RPC methods
message Response {
    repeated Item items = 1;
}