From 9bf199a4770b08c03d553129757d960b605e598a Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 14 五月 2021 18:05:21 +0800
Subject: [PATCH] add center info at fixed address in shm.
---
proto/source/bhome_msg_api.proto | 30 +++++++++++++++++++++++++-----
1 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/proto/source/bhome_msg_api.proto b/proto/source/bhome_msg_api.proto
index a8e8545..94bc82e 100644
--- a/proto/source/bhome_msg_api.proto
+++ b/proto/source/bhome_msg_api.proto
@@ -1,15 +1,16 @@
syntax = "proto3";
option optimize_for = LITE_RUNTIME;
+option go_package="./bhome_msg";
// public messages
import "error_msg.proto";
-package bhome.msg;
+package bhome_msg;
message BHAddress {
- bytes mq_id = 1; // mqid, uuid
- // bytes ip = 2; //
- // int32 port = 3;
+ uint64 mq_id = 1;
+ bytes ip = 2;
+ int32 port = 3;
}
message ProcInfo
@@ -50,6 +51,11 @@
repeated BHAddress addrs = 2;
}
+message MsgUnregister
+{
+ ProcInfo proc = 1;
+}
+
message MsgHeartbeat
{
ProcInfo proc = 1;
@@ -61,5 +67,19 @@
message MsgQueryTopicReply {
ErrorMsg errmsg = 1;
- BHAddress address = 2;
+
+message BHNodeAddress {
+ bytes proc_id = 1;
+ BHAddress addr = 2;
+}
+ repeated BHNodeAddress node_address = 2;
+}
+
+message MsgQueryProc {
+ bytes proc_id = 1;
+}
+
+message MsgQueryProcReply {
+ ErrorMsg errmsg = 1;
+ repeated ProcInfo proc = 2;
}
--
Gitblit v1.8.0