Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServerURL *url.URL // MQTT server URL Auth *authConf Group string ClientID string // Client ID to use when connecting to server Topics []string // Topic on which to publish messaged Qos byte // QOS to use when publishing KeepAlive uint16 // seconds between keepalive packets ConnectRetryDelay time.Duration // Period between connection attempts QueuePath string EnableGzip bool Debug bool // autopaho and paho debug output requested Logger *log.Logger }
config holds the configuration
func GetConfigFromEnv ¶ added in v1.2.0
getConfig - Retrieves the configuration from the environment
func GetConfigFromEnvPrefixWithoutTopic ¶ added in v1.4.5
func GetConfigFromEnvWithoutTopic ¶ added in v1.2.0
func GetConfigFromYaml ¶ added in v1.4.8
Click to show internal directories.
Click to hide internal directories.