Versions in this module Expand all Collapse all v1 v1.2.0 Feb 10, 2020 Changes in this version type Config + CAFile string v1.1.0 Feb 9, 2020 Changes in this version type Config + CertFile string + KeyFile string v1.0.2 Feb 10, 2020 Changes in this version + func GetClient(opts *gomqtt.ClientOptions) (client gomqtt.Client, err error) + func GetClientOptions(conf *Config) *gomqtt.ClientOptions + func Init(opts *gomqtt.ClientOptions) (err error) + func Publish(topic string, payload interface{}, qos byte, retained bool) (err error) + func Subscribe(item SubscribeType) + type Config struct + Broker string + CACert string + ClientCert string + ClientID string + ClientKey string + Password string + Username string + type SubscribeType struct + Callback gomqtt.MessageHandler + Qos byte + RetryTimes int + Topic string