From c7069befa28a0f2594f0746044318a30d6989c19 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期日, 25 四月 2021 11:36:03 +0800 Subject: [PATCH] 使用bhsgo by lichao --- broker.go | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/broker.go b/broker.go index cc78e6e..d1ba2c1 100644 --- a/broker.go +++ b/broker.go @@ -1,17 +1,17 @@ package bhomeclient -import "basic.com/valib/bhomebus.git" +import "basic.com/valib/bhshmq.git/proto/source/bhome_msg" type Broker interface { //鍙戝竷鍒版湰鏈� - Publish(topic string, msg []byte) error + Publish(string, []byte) error //鍙戝竷鍒拌繙绋嬫満鍣� - PublishNet(nodes []bhomebus.NetNode, topic string, msg []byte) error + PublishNet([]bhome_msg.BHAddress, string, []byte) error //璁㈤槄涓�浜涗富棰�,鍙姩鎬佹柊澧� - Subscribe(topics []string) + Subscribe([]string) //娉ㄩ攢璁㈤槄鐨勪富棰� - DeSub(topics []string) + DeSub([]string) } -- Gitblit v1.8.0