blob: 2f2ec00b289641e4b3fe8ad593651bcc5920ba2b [file] [log] [blame]
David K. Bainbridge24ff0232019-04-30 13:26:19 -07001// protoc -I echo/ echo/*.proto --go_out=plugins=grpc:echo
2
3syntax = "proto3";
4
5option go_package = "github.com/opencord/voltha-protos/go/afrouter";
6
7package afrouter;
8
9service Configuration {
10 rpc SetConnection (Conn) returns (Result) {}
11 rpc SetAffinity(Affinity) returns (Result) {}
12 rpc GetGoroutineCount(Empty) returns (Count) {}
13}
14
15message Result {
16 bool success = 1;
17 string error = 2;
18 string info = 3;
19}
20
21message Empty {
22}
23
24message Count {
25 uint32 count = 1;
26}
27
28message Conn {
29 string server = 1;
30 string pkg = 2;
31 string svc = 3;
32 string cluster = 4;
33 string backend = 5;
34 string connection = 6;
35 string addr = 7;
36 uint64 port = 8;
37}
38
39message Affinity {
40 string router = 1;
41 string route = 2;
42 string cluster = 3;
43 string backend = 4;
44 string id = 5;
45}