Versions in this module Expand all Collapse all v1 v1.0.1 Jul 17, 2023 v1.0.0 Jul 17, 2023 Changes in this version + func New(opt *Options, logger *zap.SugaredLogger) + func Publish(topic string, qos QOS, retain bool, payload []byte) + func RegisterMultipleSubscriber(topics map[string]byte, callback mqtt.MessageHandler) + func RegisterSubscriber(topic string, qos QOS, handler mqtt.MessageHandler) + func ServerConnect() + func ServerDisconnect(quiesce uint) + func Unsubscribe(topic string) + type Mqc struct + type Options struct + func NewOptions(serverURL string, clientID string, username string, password string) *Options + func (o *Options) SetConnectRetry(connectRetry bool, connectRetryInterval time.Duration) *Options + func (o *Options) SetConnectTimeout(connectTimeout time.Duration) *Options + func (o *Options) SetKeepAlive(keepAlive time.Duration) *Options + type QOS byte + const AtLeastOnce + const AtMostOnce + const ExactlyOnce