Documentation
¶
Index ¶
- Variables
- func Bind(options ...Option)
- type CLH
- type CP
- type Logger
- type MH
- type OCH
- type Option
- func AutoReconnect(a bool) Option
- func BinaryWill(topic string, payload []byte, qos byte, retained bool) Option
- func Broker(broker string) Option
- func CleanSession(clean bool) Option
- func ClientID(id string) Option
- func ConnectRetry(a bool) Option
- func ConnectRetryInterval(t time.Duration) Option
- func ConnectTimeout(t time.Duration) Option
- func ConnectionLostHandler(onLost CLH) Option
- func CredentialsProvider(p CP) Option
- func DefaultPublishHandler(defaultHandler MH) Option
- func DisableWill() Option
- func HTTPHeaders(h http.Header) Option
- func KeepAlive(k time.Duration) Option
- func LogMode(a bool) Option
- func MaxReconnectInterval(t time.Duration) Option
- func MessageChannelDepth(s uint) Option
- func OnConnectHandler(onConn OCH) Option
- func OrderMatters(order bool) Option
- func PingTimeout(k time.Duration) Option
- func ProtocolVersion(pv uint) Option
- func Pwd(pwd string) Option
- func ReconnectiongHandler(rh RH) Option
- func ResumeSubs(resume bool) Option
- func Store(s ST) Option
- func TLSConfig(t *tls.Config) Option
- func UserName(username string) Option
- func WebsocketOptions(w *WsOptions) Option
- func Will(topic, payload string, qos byte, retained bool) Option
- func WriteTimeout(t time.Duration) Option
- type RH
- type ST
- type WsOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var MqttClient MQTT.Client
Functions ¶
Types ¶
type CLH ¶
type CLH = MQTT.ConnectionLostHandler
type CP ¶
type CP = MQTT.CredentialsProvider
type Logger ¶
type Logger struct {
*zap.SugaredLogger
}
type MH ¶
type MH = MQTT.MessageHandler
type OCH ¶
type OCH = MQTT.OnConnectHandler
type Option ¶
type Option func(options *MQTT.ClientOptions)
func AutoReconnect ¶
func CleanSession ¶
func ConnectRetry ¶
func ConnectRetryInterval ¶
func ConnectTimeout ¶
func ConnectionLostHandler ¶
func CredentialsProvider ¶
func DefaultPublishHandler ¶
func DisableWill ¶
func DisableWill() Option
func HTTPHeaders ¶
func MaxReconnectInterval ¶
func MessageChannelDepth ¶
func OnConnectHandler ¶
func OrderMatters ¶
func PingTimeout ¶
func ProtocolVersion ¶
func ReconnectiongHandler ¶
func ResumeSubs ¶
func WebsocketOptions ¶
func WriteTimeout ¶
type RH ¶
type RH = MQTT.ReconnectHandler
type WsOptions ¶
type WsOptions = MQTT.WebsocketOptions
Click to show internal directories.
Click to hide internal directories.