config

package
v0.0.0-...-db8fc92 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFileName = "/data/options.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DeviceID string `json:"DEVICEID"`

	HomeassistantURL   string `json:"HOMEASSISTANTURL"`
	HomeassistantToken string `json:"HOMEASSISTANTTOKEN"`

	BrokerURL      string `json:"BROKERURL"`
	BrokerPort     int    `json:"BROKERPORT"`
	BrokerUsername string `json:"BROKERUSERNAME"`
	BrokerPassword string `json:"BROKERPASSWORD"`
	BrokerTopic    string `json:"BROKERTOPIC"`

	Debug bool `json:"DEBUG"`
}

Config ...

func InitConfig

func InitConfig() (*Config, error)

Jump to

Keyboard shortcuts

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