config

package
v0.0.0-...-b48518c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	BrokerURL:       "tcp://localhost:1883",
	BrokerUsername:  "",
	BrokerPassword:  "",
	BrokerClientId:  "",
	TopicsSubscribe: []string{"/test/mqttbeat/#?1"},
	DecodePaylod:    true,
}

DefaultConfig will be used if no config file is founded

Functions

This section is empty.

Types

type Config

type Config struct {
	BrokerURL       string        `config:"broker_url"`
	BrokerUsername  string        `config:"broker_username"`
	BrokerPassword  string        `config:"broker_password"`
	BrokerClientId  string        `config:"broker_client_id"`
	TopicsSubscribe []string      `config:"topics_subscribe"`
	DecodePaylod    bool          `config:"decode_payload"`
	Period          time.Duration `config:"period"`
}

Config represents every needed configuration fields

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL