liuxiaolong
2021-11-30 8e571b851f490d683a3d74f55bfbf84d25088a2c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package bhomeclient
 
import "basic.com/valib/c_bhomebus.git/proto/source/bhome_msg"
 
type Broker interface {
    //发布到本机
    Publish(string, []byte) error
 
    //发布到远程机器
    PublishNet([]bhome_msg.BHAddress, string, []byte) error
 
    //订阅一些主题,可动态新增
    Subscribe([]string)
 
    //注销订阅的主题
    DeSub([]string)
}