config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Station      Station
	Wunderground Wunderground
	MQTT         MQTT
}

func NewConfig

func NewConfig() *Config

func NewConfigDefaults

func NewConfigDefaults() *Config

type MQTT

type MQTT struct {
	Enabled     bool
	Broker      string
	Username    string
	Password    string
	ClientID    string
	UpdateTopic string
}

type Station

type Station struct {
	ID                     string
	Password               string
	URL                    string
	WatchdogEnabled        bool
	RebootOnFailedAttempts int
}

type Wunderground

type Wunderground struct {
	Enabled   bool
	UpdateURL string
}

Jump to

Keyboard shortcuts

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