Documentation
¶
Index ¶
Constants ¶
View Source
const ( OfflinePayload string = "Offline" OnlinePayload string = "Online" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MqttClient ¶
type MqttClient struct {
// contains filtered or unexported fields
}
func Run ¶
func Run(config Config, statistics Statistics) (*MqttClient, error)
func (*MqttClient) Name ¶
func (mq *MqttClient) Name() string
func (*MqttClient) Shutdown ¶
func (mq *MqttClient) Shutdown()
func (*MqttClient) Subscribe ¶
func (mq *MqttClient) Subscribe(topic string, callback mqtt.MessageHandler) error
type Statistics ¶
type Statistics interface {
IncrementOne(module, name, field string)
}
Click to show internal directories.
Click to hide internal directories.