Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MQTT ¶
type MQTT struct {
*Options
// contains filtered or unexported fields
}
func GetConnect ¶
func GetConnect() *MQTT
type Middleware ¶
func Chain ¶
func Chain(m ...Middleware) Middleware
Chain returns a Middleware that specifies the chained handler for endpoint.
type Options ¶
type Options struct {
Addr string
ID string
Username string
Password string
KeepAlive time.Duration
SetPingTimeout time.Duration
Engine []*Engine
OnServerDisconnect func(*paho.Disconnect)
OnClientError func(error)
Logger logger.Interface
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.