Versions in this module Expand all Collapse all v1 v1.0.2 May 19, 2024 v1.0.1 May 19, 2024 Changes in this version + func NewBroker(opts ...broker.Option) broker.Broker + func WithAuth(username string, password string) broker.Option + func WithAutoReconnect(enable bool) broker.Option + func WithCleanSession(enable bool) broker.Option + func WithClientId(clientId string) broker.Option + func WithCriticalLogger() broker.Option + func WithDebugLogger() broker.Option + func WithErrorLogger() broker.Option + func WithLogger(opt LoggerOptions) broker.Option + func WithOrderMatters(enable bool) broker.Option + func WithPublishQos(qos byte) broker.PublishOption + func WithPublishRetained(retain bool) broker.PublishOption + func WithResumeSubs(enable bool) broker.Option + func WithSubscribeQos(qos byte) broker.SubscribeOption + func WithWarnLogger() broker.Option + type AuthRecord struct + Password string + Username string + type CriticalLogger struct + func (CriticalLogger) Printf(format string, v ...interface{}) + func (CriticalLogger) Println(v ...interface{}) + type DebugLogger struct + func (DebugLogger) Printf(format string, v ...interface{}) + func (DebugLogger) Println(v ...interface{}) + type ErrorLogger struct + func (ErrorLogger) Printf(format string, v ...interface{}) + func (ErrorLogger) Println(v ...interface{}) + type LoggerOptions struct + Critical bool + Debug bool + Error bool + Warn bool + type WarnLogger struct + func (WarnLogger) Printf(format string, v ...interface{}) + func (WarnLogger) Println(v ...interface{})