OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add package
[bytom/vapor.git]
/
vendor
/
github.com
/
hashicorp
/
go-plugin
/
examples
/
grpc
/
proto
/
kv.proto
1
syntax = "proto3";
2
package proto;
3
4
message GetRequest {
5
string key = 1;
6
}
7
8
message GetResponse {
9
bytes value = 1;
10
}
11
12
message PutRequest {
13
string key = 1;
14
bytes value = 2;
15
}
16
17
message Empty {}
18
19
service KV {
20
rpc Get(GetRequest) returns (GetResponse);
21
rpc Put(PutRequest) returns (Empty);
22
}