blob: 34d7da34c1c71bb79316d528cc1e239d5c207916 [file] [log] [blame]
William Kurkian6ea97f82019-03-13 15:51:55 -04001// 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 Empty {
20}
21
22message Count {
23 uint32 count = 1;
24}
25
26message Conn {
27 string server = 1;
28 string pkg = 2;
29 string svc = 3;
30 string cluster = 4;
31 string backend = 5;
32 string connection = 6;
33 string addr = 7;
34 uint64 port = 8;
35}
36
37message Affinity {
38 string router = 1;
39 string route = 2;
40 string cluster = 3;
41 string backend = 4;
42 string id = 5;
43}