Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConnectionFailureError = NewMQTTError("connection failure") EmptyTopicError = NewMQTTError("subscribe top cannot be empty string") NillHandlerError = NewMQTTError("subscribe handler cannot be nil") NillPayloadError = NewMQTTError("publish payload cannot be nil") InvalidQoSError = NewMQTTError("qos must be one of: byte(0), byte(1) or byte(2)") )
Functions ¶
func LogMessage ¶
func NewMQTTError ¶
func ValidateQoS ¶
Types ¶
type MQTTClient ¶ added in v1.17.0
func NewMQTTClient ¶
func NewMQTTClient(cfgs *configs.Configs, logger logging.Logger) MQTTClient
type MQTTDispatcher ¶
type MQTTDispatcher interface { Register(topic string, qos QoS, handler Handler) error ConsumeBlocking(ch chan os.Signal) }
func NewMQTTDispatcher ¶ added in v1.17.0
func NewMQTTDispatcher(logger logging.Logger, client myQTT.Client) MQTTDispatcher
Click to show internal directories.
Click to hide internal directories.