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 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 5 | option go_package = "github.com/opencord/voltha-protos/v3/go/afrouter"; |
| 6 | option java_package = "org.opencord.voltha"; |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 7 | |
| 8 | package afrouter; |
| 9 | |
Scott Baker | 99af94e | 2019-08-20 10:45:06 -0700 | [diff] [blame] | 10 | // For logging |
| 11 | import "voltha_protos/common.proto"; |
| 12 | |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 13 | service Configuration { |
Scott Baker | 99af94e | 2019-08-20 10:45:06 -0700 | [diff] [blame] | 14 | rpc SetConnection (Conn) returns (Result) {} |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 15 | rpc SetAffinity(Affinity) returns (Result) {} |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 16 | rpc GetGoroutineCount(Empty) returns (Count) {} |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | message Result { |
| 20 | bool success = 1; |
| 21 | string error = 2; |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 22 | string info = 3; |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | message Empty { |
| 26 | } |
| 27 | |
| 28 | message Count { |
| 29 | uint32 count = 1; |
| 30 | } |
| 31 | |
| 32 | message Conn { |
| 33 | string server = 1; |
| 34 | string pkg = 2; |
| 35 | string svc = 3; |
| 36 | string cluster = 4; |
| 37 | string backend = 5; |
| 38 | string connection = 6; |
| 39 | string addr = 7; |
| 40 | uint64 port = 8; |
| 41 | } |
| 42 | |
| 43 | message Affinity { |
| 44 | string router = 1; |
| 45 | string route = 2; |
| 46 | string cluster = 3; |
| 47 | string backend = 4; |
| 48 | string id = 5; |
| 49 | } |
Scott Baker | 99af94e | 2019-08-20 10:45:06 -0700 | [diff] [blame] | 50 | |