blob: d5e09b202f11e737b76ec8e26c5df3a337d9bc5d [file] [log] [blame]
William Kurkianbd3736d2019-03-08 12:20:40 -05001// protoc -I echo/ echo/*.proto --go_out=plugins=grpc:echo
2
3syntax = "proto3";
4
5option go_package = "github.com/opencord/voltha-protos/go/afrouter";
6
7package afrouter;
8
9service Configuration {
10 rpc SetConnection (Conn) returns (Result) {}
11 rpc SetAffinity(Affinity) returns (Result) {}
12}
13
14message Result {
15 bool success = 1;
16 string error = 2;
17}
18
19message 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
30message Affinity {
31 string router = 1;
32 string route = 2;
33 string cluster = 3;
34 string backend = 4;
35 string id = 5;
36}