Versions in this module Expand all Collapse all v4 v4.0.0 Feb 6, 2024 Changes in this version + func SaveAppPreferences(app string, setters ...AppPref) error + func SavePreferences(setters ...Pref) error + func SetFile(file string) + func SetPath(path string) + type AppPref func(*AppPreferences) + func SetAppPreferences(prefs map[string]any) AppPref + type AppPreferences struct + Prefs map[string]any + func DefaultAppPreferences() *AppPreferences + func LoadAppPreferences(app string) (*AppPreferences, error) + type Pref func(*Preferences) + func MQTTPassword(password string) Pref + func MQTTServer(server string) Pref + func MQTTUser(user string) Pref + func RegisterApps(apps ...string) Pref + func UnRegisterApps(apps ...string) Pref + type Preferences struct + Password string + RegisteredApps []string + Server string + User string + func LoadPreferences() (*Preferences, error) + func (p *Preferences) IsRegistered(app string) bool + func (p *Preferences) MQTTPassword() string + func (p *Preferences) MQTTServer() string + func (p *Preferences) MQTTUser() string Other modules containing this package github.com/joshuar/go-hass-anything/v10 github.com/joshuar/go-hass-anything/v11 github.com/joshuar/go-hass-anything/v12 github.com/joshuar/go-hass-anything/v5 github.com/joshuar/go-hass-anything/v6 github.com/joshuar/go-hass-anything/v7 github.com/joshuar/go-hass-anything/v8 github.com/joshuar/go-hass-anything/v9