| 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 | |||||
| 5 | option go_package = "github.com/opencord/voltha-go/protos/afrouter"; | ||||
| 6 | |||||
| 7 | package afrouter; | ||||
| 8 | |||||
| 9 | service Configuration { | ||||
| 10 | rpc SetConnection (Conn) returns (Result) {} | ||||
| 11 | rpc SetAffinity(Affinity) returns (Result) {} | ||||
| 12 | } | ||||
| 13 | |||||
| 14 | message Result { | ||||
| 15 | bool success = 1; | ||||
| 16 | string error = 2; | ||||
| 17 | } | ||||
| 18 | |||||
| 19 | message Conn { | ||||
| 20 | string server = 1; | ||||
| 21 | string pkg = 2; | ||||
| 22 | string svc = 3; | ||||
| 23 | string cluster = 4; | ||||
| 24 | string backend = 5; | ||||
| 25 | string connection = 6; | ||||
| 26 | string addr = 7; | ||||
| 27 | uint64 port = 8; | ||||
| 28 | } | ||||
| 29 | |||||
| 30 | message Affinity { | ||||
| 31 | string router = 1; | ||||
| 32 | string route = 2; | ||||
| 33 | string cluster = 3; | ||||
| 34 | string backend = 4; | ||||
| 35 | string id = 5; | ||||
| 36 | } | ||||