Documentation ¶
Index ¶
Constants ¶
View Source
const ( PUBLIC_BROKER = "broker.emqx.io" LOCAL_BROKER = "localhost" )
View Source
const ( TOPIC_CONTROL = "topic/control" TOPIC_INFO = "topic/info" TOPIC_ERROR = "topic/error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Disconnect ¶
type PublishHandler ¶
type PublishHandler func(topic string, payloads ...interface{})
type SubscribeHandler ¶
type SubscribeHandler func(topic string, handle mqtt.MessageHandler)
Click to show internal directories.
Click to hide internal directories.