Documentation
¶
Index ¶
- func NewBroker(opts ...broker.Option) broker.Broker
- func SetClientIdPrefix(prefix string)
- 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 WithConnectRetryInterval(k time.Duration) broker.Option
- func WithConnectTimeout(k time.Duration) broker.Option
- func WithCriticalLogger() broker.Option
- func WithDebugLogger() broker.Option
- func WithErrorLogger() broker.Option
- func WithKeepAlive(k time.Duration) broker.Option
- func WithLogger(opt LoggerOptions) broker.Option
- func WithMaxReconnectInterval(k time.Duration) broker.Option
- func WithOrderMatters(enable bool) broker.Option
- func WithPingTimeout(k time.Duration) broker.Option
- func WithProtocolVersion(pv uint) broker.Option
- func WithPublishQos(qos byte) broker.PublishOption
- func WithPublishRetained(retained bool) broker.PublishOption
- func WithResumeSubs(enable bool) broker.Option
- func WithSubscribeQos(qos byte) broker.SubscribeOption
- func WithWarnLogger() broker.Option
- func WithWriteTimeout(k time.Duration) 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 SetClientIdPrefix ¶ added in v1.2.15
func SetClientIdPrefix(prefix string)
SetClientIdPrefix set the prefix of the client id
func WithAutoReconnect ¶
WithAutoReconnect enable aut reconnect option
func WithCleanSession ¶
WithCleanSession enable clean session option
func WithClientId ¶
WithClientId set client id option
func WithConnectRetryInterval ¶ added in v1.2.15
WithConnectRetryInterval .
func WithConnectTimeout ¶ added in v1.2.15
WithConnectTimeout .
func WithCriticalLogger ¶
func WithDebugLogger ¶
func WithErrorLogger ¶
func WithKeepAlive ¶ added in v1.2.15
WithKeepAlive .
func WithLogger ¶
func WithLogger(opt LoggerOptions) broker.Option
func WithMaxReconnectInterval ¶ added in v1.2.15
WithMaxReconnectInterval .
func WithPingTimeout ¶ added in v1.2.15
WithPingTimeout .
func WithProtocolVersion ¶ added in v1.2.15
WithProtocolVersion .
func WithPublishRetained ¶
func WithPublishRetained(retained bool) broker.PublishOption
WithPublishRetained retained
func WithWarnLogger ¶
Types ¶
type AuthRecord ¶
type CriticalLogger ¶
type CriticalLogger struct{}
func (CriticalLogger) Printf ¶
func (CriticalLogger) Printf(format string, v ...interface{})
func (CriticalLogger) Println ¶
func (CriticalLogger) Println(v ...interface{})
type DebugLogger ¶
type DebugLogger struct{}
func (DebugLogger) Printf ¶
func (DebugLogger) Printf(format string, v ...interface{})
func (DebugLogger) Println ¶
func (DebugLogger) Println(v ...interface{})
type ErrorLogger ¶
type ErrorLogger struct{}
func (ErrorLogger) Printf ¶
func (ErrorLogger) Printf(format string, v ...interface{})
func (ErrorLogger) Println ¶
func (ErrorLogger) Println(v ...interface{})
type WarnLogger ¶
type WarnLogger struct{}
func (WarnLogger) Printf ¶
func (WarnLogger) Printf(format string, v ...interface{})
func (WarnLogger) Println ¶
func (WarnLogger) Println(v ...interface{})
Click to show internal directories.
Click to hide internal directories.