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
/
bidirectional
/
proto
/
kv.proto
1
syntax = "proto3";
2
package proto;
3
4
message GetRequest {
5
string key = 1;
6
}
7
8
message GetResponse {
9
int64 value = 1;
10
}
11
12
message PutRequest {
13
uint32 add_server = 1;
14
string key = 2;
15
int64 value = 3;
16
}
17
18
message Empty {}
19
20
message SumRequest {
21
int64 a = 1;
22
int64 b = 2;
23
}
24
25
message SumResponse {
26
int64 r = 1;
27
}
28
29
service Counter {
30
rpc Get(GetRequest) returns (GetResponse);
31
rpc Put(PutRequest) returns (Empty);
32
}
33
34
service AddHelper {
35
rpc Sum(SumRequest) returns (SumResponse);
36
}