blob: 77028413769abd8a490be5b3f68a7b32c71b84a6 [file] [log] [blame]
sslobodra3ea7d42019-01-16 15:03:16 -05001// protoc -I echo/ echo/*.proto --go_out=plugins=grpc:echo
2
3syntax = "proto3";
4
5option go_package = "github.com/opencord/voltha-go/protos/afrouter";
6
7package afrouter;
8
9service Configuration {
sslobodr1d1e50b2019-03-14 09:17:40 -040010 rpc SetConnection (Conn) returns (Result) {}
sslobodra3ea7d42019-01-16 15:03:16 -050011 rpc SetAffinity(Affinity) returns (Result) {}
sslobodr1d1e50b2019-03-14 09:17:40 -040012 rpc GetGoroutineCount(Empty) returns (Count) {}
13}
14
15message Empty {
16}
17
18message Count {
19 uint32 count = 1;
sslobodra3ea7d42019-01-16 15:03:16 -050020}
21
22message Result {
23 bool success = 1;
24 string error = 2;
sslobodr1d1e50b2019-03-14 09:17:40 -040025 string info = 3;
sslobodra3ea7d42019-01-16 15:03:16 -050026}
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}