Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ExecNum int // 执行次数 Interval int // 发布间隔 UserInterval int // 好友发包间隔(单位毫秒) AutoReconnect bool // 自动重连 DisconnectScale int // 发送完成之后,断开客户端的比例 IsStore bool // 是否执行持久化存储 MongoUrl string // MongoDB连接 Network string Address string Qos byte UserName string Password string CleanSession bool KeepAlive int }
type HandleConnect ¶
type HandleConnect struct {
// contains filtered or unexported fields
}
func NewHandleConnect ¶
func NewHandleConnect(clientID string, pub *Publish) *HandleConnect
func (*HandleConnect) ErrorHandle ¶
func (hc *HandleConnect) ErrorHandle(err error)
func (*HandleConnect) Subscribe ¶
func (hc *HandleConnect) Subscribe(topicName, message []byte)
Click to show internal directories.
Click to hide internal directories.