Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Topic ¶
type Topic struct {
Path string `json:"topic"`
Interval time.Duration
Messages []Message
// contains filtered or unexported fields
}
Topic represents a MQTT topic.
type TopicMap ¶
TopicMap is a thread-safe map of topics
func (*TopicMap) AddMessage ¶
AddMessage adds a message to the topic for the given path.
func (*TopicMap) HasSubscription ¶
HasSubscription returns true if the topic map has a subscription for the given path.
Click to show internal directories.
Click to hide internal directories.