Versions in this module Expand all Collapse all v1 v1.0.1 Jul 14, 2019 v1.0.0 Jul 2, 2019 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 + ClientID string + Host string + Port int + type SubscribeType struct + Callback gomqtt.MessageHandler + Qos byte + RetryTimes int + Topic string