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