Documentation ¶
Index ¶
Constants ¶
View Source
const MQTTProtoTopic = "/2/c/"
Variables ¶
View Source
var DefaultClient = Client{ // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetChannelFromTopic ¶
func (*Client) GetFullTopicForChannel ¶
func (*Client) Handle ¶
func (c *Client) Handle(channel string, h HandlerFunc)
Register a handler for messages on the specified channel
type HandlerFunc ¶
type HandlerFunc func(message Message)
Click to show internal directories.
Click to hide internal directories.