From ad4f3dcedab29a690c5eedbb08ba1b393917db0b Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期三, 21 四月 2021 17:39:34 +0800 Subject: [PATCH] update go api. --- proto/source/bhome_msg_api.proto | 25 ++++++++++--------------- 1 files changed, 10 insertions(+), 15 deletions(-) diff --git a/proto/source/bhome_msg_api.proto b/proto/source/bhome_msg_api.proto index 82b8115..fd1ae8f 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; + bytes ip = 2; // + int32 port = 3; } message ProcInfo @@ -20,16 +21,14 @@ bytes private_info = 4; } +message MsgTopicList { + repeated bytes topic_list = 1; +} + + message MsgPublish { bytes topic = 1; bytes data = 2; -} - -message MsgSubscribe { - repeated bytes topics = 1; -} -message MsgUnsubscribe { - repeated bytes topics = 1; } message MsgCommonReply { @@ -49,11 +48,7 @@ message MsgRegister { ProcInfo proc = 1; -} - -message MsgRegisterRPC -{ - repeated bytes topics = 1; + repeated BHAddress addrs = 2; } message MsgHeartbeat -- Gitblit v1.8.0