William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 1 | // protoc -I echo/ echo/*.proto --go_out=plugins=grpc:echo |
| 2 | |
| 3 | syntax = "proto3"; |
| 4 | |
| 5 | option go_package = "github.com/opencord/voltha-protos/go/afrouter"; |
| 6 | |
| 7 | package afrouter; |
| 8 | |
| 9 | service Configuration { |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 10 | rpc SetConnection (Conn) returns (Result) {} |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 11 | rpc SetAffinity(Affinity) returns (Result) {} |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 12 | rpc GetGoroutineCount(Empty) returns (Count) {} |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | message Result { |
| 16 | bool success = 1; |
| 17 | string error = 2; |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 18 | string info = 3; |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | message Empty { |
| 22 | } |
| 23 | |
| 24 | message Count { |
| 25 | uint32 count = 1; |
| 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 | } |