config

package
v0.0.0-...-41d9ec3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigPath

func GetConfigPath() (string, error)

func OpenConfigEditor

func OpenConfigEditor() error

Types

type Config

type Config struct {
	Homeassistant struct {
		Token string `json:"token"`
		URL   string `json:"url"`
	} `json:"homeassistant"`
	Update struct {
		Period          int      `json:"period"`
		Ignore          []string `json:"ignore"`
		AllowItems      bool     `json:"allowItems"`
		AllowDevices    bool     `json:"allowDevices"`
		MinimalAccuracy int      `json:"minimalAccuracy"`
	} `json:"update"`
	FindMyApp struct {
		BringToFrontOnIdle bool `json:"bringToFrontOnIdle"`
		BringToFronDelay   int  `json:"bringToFrontDelay"`
		OpenOnStartup      bool `json:"openOnStartup"`
	} `json:"findMyApp"`
}

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