VOL-1460
I need to test out a method sharing protos.
In particular, it is the protos under the go/folder
Plus some updates to the build process.
Change-Id: I5878354fd1ef136d4f0a019b22de96afdb0205e1
diff --git a/go/afrouter/afrouter.proto b/go/afrouter/afrouter.proto
new file mode 100644
index 0000000..d5e09b2
--- /dev/null
+++ b/go/afrouter/afrouter.proto
@@ -0,0 +1,36 @@
+// protoc -I echo/ echo/*.proto --go_out=plugins=grpc:echo
+
+syntax = "proto3";
+
+option go_package = "github.com/opencord/voltha-protos/go/afrouter";
+
+package afrouter;
+
+service Configuration {
+ rpc SetConnection (Conn) returns (Result) {}
+ rpc SetAffinity(Affinity) returns (Result) {}
+}
+
+message Result {
+ bool success = 1;
+ string error = 2;
+}
+
+message Conn {
+ string server = 1;
+ string pkg = 2;
+ string svc = 3;
+ string cluster = 4;
+ string backend = 5;
+ string connection = 6;
+ string addr = 7;
+ uint64 port = 8;
+}
+
+message Affinity {
+ string router = 1;
+ string route = 2;
+ string cluster = 3;
+ string backend = 4;
+ string id = 5;
+}