Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Options ¶
type Options struct { URI string `json:"uri"` Username string `json:"username"` Password string `json:"password"` ClientID string `json:"clientID"` TLSCACert string `json:"tlsCACert"` TLSClientCert string `json:"tlsClientCert"` TLSClientKey string `json:"tlsClientKey"` TLSSkipVerify bool `json:"tlsSkipVerify"` }
type Topic ¶
type Topic struct { Path string `json:"topic"` StreamingKey string `json:"streamingKey,omitempty"` 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.