aboutsummaryrefslogtreecommitdiff
path: root/config/config.go
diff options
context:
space:
mode:
authorEthel Morgan <eth@ethulhu.co.uk>2020-06-20 10:09:12 +0100
committerEthel Morgan <eth@ethulhu.co.uk>2020-06-20 10:09:12 +0100
commit09bb9e12fcd0336af2a3a9f9aacc6384ac004943 (patch)
tree8f63a8fadcf3f823c86d06e29cc938065a345687 /config/config.go
parentd8d9b04ebbdfff0dd3d952d2658f117d47730c9d (diff)
move package mqtt to package catbus, make more convenient
Diffstat (limited to '')
-rw-r--r--config/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/config.go b/config/config.go
index b31551f..fddc3f0 100644
--- a/config/config.go
+++ b/config/config.go
@@ -12,7 +12,7 @@ import (
type (
Config struct {
- Broker string
+ BrokerURI string
MACsByTopic map[string]net.HardwareAddr
}
@@ -46,7 +46,7 @@ func ParseFile(path string) (*Config, error) {
func configFromConfig(raw config) *Config {
c := &Config{
- Broker: raw.MQTTBroker,
+ BrokerURI: raw.MQTTBroker,
MACsByTopic: map[string]net.HardwareAddr{},
}