Scott Baker | e7144bc | 2019-10-01 14:16:47 -0700 | [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 | // For logging |
| 10 | import "voltha_protos/common.proto"; |
| 11 | |
| 12 | service Configuration { |
| 13 | rpc SetConnection (Conn) returns (Result) {} |
| 14 | rpc SetAffinity(Affinity) returns (Result) {} |
| 15 | rpc GetGoroutineCount(Empty) returns (Count) {} |
| 16 | rpc UpdateLogLevel(common.Logging) returns (Empty) {} |
| 17 | rpc GetLogLevels(common.LoggingComponent) returns (common.Loggings) {} |
| 18 | } |
| 19 | |
| 20 | message Result { |
| 21 | bool success = 1; |
| 22 | string error = 2; |
| 23 | string info = 3; |
| 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 | } |
| 51 | |