Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMQTTClient ¶
func NewMQTTClient(opts *NewMQTTClientOptions) (*mqtt.Client, error)
Types ¶
type NewMQTTClientOptions ¶
type NewMQTTClientOptions struct { UsernameTransformer UsernameTransformer // optional, username transformer PasswordEncryptor PasswordEncryptor // optional, password custom encryptor; default is no encrypt Brokers []string // required, MQTT broker address ClientID string // required, MQTT client ID Username string // required, MQTT username Password string // required, MQTT password ALPN []string // optional, MQTT ALPN ConnectionLostHandler func(client mqtt.Client, err error) // optional, connection lost handler }
type PasswordEncryptor ¶
func NewHmacSha1Encryptor ¶
func NewHmacSha1Encryptor(key string) PasswordEncryptor
type UsernameTransformer ¶
func NewAwsIotUsernameTransformer ¶
func NewAwsIotUsernameTransformer(customAuthName string) UsernameTransformer
Click to show internal directories.
Click to hide internal directories.