blob: 2f2ec00b289641e4b3fe8ad593651bcc5920ba2b [file] [log] [blame]
William Kurkian6ea97f82019-03-13 15:51:55 -04001// 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 {
William Kurkian9f2e64c2019-04-16 15:11:44 -040010 rpc SetConnection (Conn) returns (Result) {}
William Kurkian6ea97f82019-03-13 15:51:55 -040011 rpc SetAffinity(Affinity) returns (Result) {}
William Kurkian9f2e64c2019-04-16 15:11:44 -040012 rpc GetGoroutineCount(Empty) returns (Count) {}
William Kurkian6ea97f82019-03-13 15:51:55 -040013}
14
15message Result {
16 bool success = 1;
17 string error = 2;
William Kurkian9f2e64c2019-04-16 15:11:44 -040018 string info = 3;
William Kurkian6ea97f82019-03-13 15:51:55 -040019}
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}