blob: 14f07edac77a1f7666cf26488f761fac4d3e19b6 [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
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03005option go_package = "github.com/opencord/voltha-protos/v3/go/afrouter";
6option java_package = "org.opencord.voltha";
William Kurkian6ea97f82019-03-13 15:51:55 -04007
8package afrouter;
9
Scott Baker99af94e2019-08-20 10:45:06 -070010// For logging
11import "voltha_protos/common.proto";
12
William Kurkian6ea97f82019-03-13 15:51:55 -040013service Configuration {
Scott Baker99af94e2019-08-20 10:45:06 -070014 rpc SetConnection (Conn) returns (Result) {}
William Kurkian6ea97f82019-03-13 15:51:55 -040015 rpc SetAffinity(Affinity) returns (Result) {}
William Kurkian9f2e64c2019-04-16 15:11:44 -040016 rpc GetGoroutineCount(Empty) returns (Count) {}
William Kurkian6ea97f82019-03-13 15:51:55 -040017}
18
19message Result {
20 bool success = 1;
21 string error = 2;
William Kurkian9f2e64c2019-04-16 15:11:44 -040022 string info = 3;
William Kurkian6ea97f82019-03-13 15:51:55 -040023}
24
25message Empty {
26}
27
28message Count {
29 uint32 count = 1;
30}
31
32message Conn {
33 string server = 1;
34 string pkg = 2;
35 string svc = 3;
36 string cluster = 4;
37 string backend = 5;
38 string connection = 6;
39 string addr = 7;
40 uint64 port = 8;
41}
42
43message Affinity {
44 string router = 1;
45 string route = 2;
46 string cluster = 3;
47 string backend = 4;
48 string id = 5;
49}
Scott Baker99af94e2019-08-20 10:45:06 -070050