blob: c10a00f3ee7af576543753bbbb46e2e14fb9ab69 [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
Scott Baker99af94e2019-08-20 10:45:06 -07009// For logging
10import "voltha_protos/common.proto";
11
William Kurkian6ea97f82019-03-13 15:51:55 -040012service Configuration {
Scott Baker99af94e2019-08-20 10:45:06 -070013 rpc SetConnection (Conn) returns (Result) {}
William Kurkian6ea97f82019-03-13 15:51:55 -040014 rpc SetAffinity(Affinity) returns (Result) {}
William Kurkian9f2e64c2019-04-16 15:11:44 -040015 rpc GetGoroutineCount(Empty) returns (Count) {}
Scott Baker99af94e2019-08-20 10:45:06 -070016 rpc UpdateLogLevel(common.Logging) returns (Empty) {}
17 rpc GetLogLevels(common.LoggingComponent) returns (common.Loggings) {}
William Kurkian6ea97f82019-03-13 15:51:55 -040018}
19
20message Result {
21 bool success = 1;
22 string error = 2;
William Kurkian9f2e64c2019-04-16 15:11:44 -040023 string info = 3;
William Kurkian6ea97f82019-03-13 15:51:55 -040024}
25
26message Empty {
27}
28
29message Count {
30 uint32 count = 1;
31}
32
33message 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
44message Affinity {
45 string router = 1;
46 string route = 2;
47 string cluster = 3;
48 string backend = 4;
49 string id = 5;
50}
Scott Baker99af94e2019-08-20 10:45:06 -070051