OSDN Git Service

delete miner
[bytom/vapor.git] / vendor / github.com / go-kit / kit / examples / addsvc / pb / addsvc.proto
1 syntax = "proto3";
2
3 package pb;
4
5 // The Add service definition.
6 service Add {
7   // Sums two integers.
8   rpc Sum (SumRequest) returns (SumReply) {}
9
10   // Concatenates two strings
11   rpc Concat (ConcatRequest) returns (ConcatReply) {}
12 }
13
14 // The sum request contains two parameters.
15 message SumRequest {
16   int64 a = 1;
17   int64 b = 2;
18 }
19
20 // The sum response contains the result of the calculation.
21 message SumReply {
22   int64 v = 1;
23   string err = 2;
24 }
25
26 // The Concat request contains two parameters.
27 message ConcatRequest {
28   string a = 1;
29   string b = 2;
30 }
31
32 // The Concat response contains the result of the concatenation.
33 message ConcatReply {
34   string v = 1;
35   string err = 2;
36 }