Documentation
¶
Index ¶
- 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(qos byte) broker.PublishOption
- func WithResumeSubs(enable bool) broker.Option
- func WithSubscribeQos(qos byte) broker.SubscribeOption
- func WithWarnLogger() broker.Option
- type AuthRecord
- type CriticalLogger
- type DebugLogger
- type ErrorLogger
- type LoggerOptions
- type WarnLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAutoReconnect ¶
WithAutoReconnect enable aut reconnect option
func WithCleanSession ¶
WithCleanSession enable clean session option
func WithClientId ¶
WithClientId set client id option
func WithPublishRetained ¶
func WithPublishRetained(qos byte) broker.PublishOption
WithPublishRetained retained
Types ¶
type AuthRecord ¶
type CriticalLogger ¶
type CriticalLogger struct{}
func (CriticalLogger) Printf ¶
func (CriticalLogger) Printf(format string, v ...interface{})
Printf .
type DebugLogger ¶
type DebugLogger struct{}
type ErrorLogger ¶
type ErrorLogger struct{}
type WarnLogger ¶
type WarnLogger struct{}
Click to show internal directories.
Click to hide internal directories.