config

package
v0.0.0-...-bf199b6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 6 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 {
	Values     ConfigValues
	ConfigPath string
}

func ReadConfig

func ReadConfig(path string) (*Config, error)

func (*Config) SetLogLevel

func (c *Config) SetLogLevel(l echo.Logger)

type ConfigValues

type ConfigValues struct {
	WebUIPort     uint16
	HomeAssistant HomeAssistantConfig
	MQTTBroker    string
	LogLevel      string
}

type HomeAssistantConfig

type HomeAssistantConfig struct {
	Address     string
	AccessToken string
}

Jump to

Keyboard shortcuts

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