sslobodr | a3ea7d4 | 2019-01-16 15:03:16 -0500 | [diff] [blame] | 1 | // protoc -I echo/ echo/*.proto --go_out=plugins=grpc:echo |
| 2 | |
| 3 | syntax = "proto3"; |
| 4 | |
William Kurkian | daa6bb2 | 2019-03-07 12:26:28 -0500 | [diff] [blame] | 5 | option go_package = "github.com/opencord/voltha-protos/go/afrouter"; |
sslobodr | a3ea7d4 | 2019-01-16 15:03:16 -0500 | [diff] [blame] | 6 | |
| 7 | package afrouter; |
| 8 | |
| 9 | service Configuration { |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 10 | rpc SetConnection (Conn) returns (Result) {} |
sslobodr | a3ea7d4 | 2019-01-16 15:03:16 -0500 | [diff] [blame] | 11 | rpc SetAffinity(Affinity) returns (Result) {} |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 12 | rpc GetGoroutineCount(Empty) returns (Count) {} |
| 13 | } |
| 14 | |
| 15 | message Empty { |
| 16 | } |
| 17 | |
| 18 | message Count { |
| 19 | uint32 count = 1; |
sslobodr | a3ea7d4 | 2019-01-16 15:03:16 -0500 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | message Result { |
| 23 | bool success = 1; |
| 24 | string error = 2; |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 25 | string info = 3; |
sslobodr | a3ea7d4 | 2019-01-16 15:03:16 -0500 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | message 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 | |
| 39 | message Affinity { |
| 40 | string router = 1; |
| 41 | string route = 2; |
| 42 | string cluster = 3; |
| 43 | string backend = 4; |
| 44 | string id = 5; |
| 45 | } |