blob: c10a00f3ee7af576543753bbbb46e2e14fb9ab69 [file] [log] [blame]
David K. Bainbridge24ff0232019-04-30 13:26:19 -07001// 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 Baker112b0d42019-08-22 08:32:26 -07009// For logging
10import "voltha_protos/common.proto";
11
David K. Bainbridge24ff0232019-04-30 13:26:19 -070012service Configuration {
Scott Baker112b0d42019-08-22 08:32:26 -070013 rpc SetConnection (Conn) returns (Result) {}
David K. Bainbridge24ff0232019-04-30 13:26:19 -070014 rpc SetAffinity(Affinity) returns (Result) {}
15 rpc GetGoroutineCount(Empty) returns (Count) {}
Scott Baker112b0d42019-08-22 08:32:26 -070016 rpc UpdateLogLevel(common.Logging) returns (Empty) {}
17 rpc GetLogLevels(common.LoggingComponent) returns (common.Loggings) {}
David K. Bainbridge24ff0232019-04-30 13:26:19 -070018}
19
20message Result {
21 bool success = 1;
22 string error = 2;
23 string info = 3;
24}
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 Baker112b0d42019-08-22 08:32:26 -070051