Documentation
¶
Overview ¶
Package mqtt publishes notification messages to an MQTT broker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Publish ¶
func Publish(broker, clientID, topic, message string, qos byte, retain bool, username, password string) error
Publish connects to an MQTT broker, publishes a message to the given topic, and disconnects. Each invocation creates a fresh connection — simple and stateless, matching the webhook pattern.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.