Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HatsConfig ¶
type HatsConfig struct { LogLevl string HomeAssistantHost string HomeAssistantPort string HomeAssistantSecure bool HomeAssistantToken string NatsHost string NatsPort string NatsToken string NatsClientName string HatsHost string HatsPort string HatsToken string HatsSecure bool NtfyHost string NtfyToken string }
func FromEnvironment ¶
func FromEnvironment() *HatsConfig
func (*HatsConfig) GetHatsBaseUrl ¶
func (c *HatsConfig) GetHatsBaseUrl() string
func (*HatsConfig) GetHomeAssistantBaseUrl ¶
func (c *HatsConfig) GetHomeAssistantBaseUrl() string
func (*HatsConfig) GetHomeAssistantWebsocketUrl ¶
func (c *HatsConfig) GetHomeAssistantWebsocketUrl() string
func (*HatsConfig) GetLogLevel ¶
func (c *HatsConfig) GetLogLevel() slog.Level
func (*HatsConfig) GetNatsBaseUrl ¶
func (c *HatsConfig) GetNatsBaseUrl() string
Click to show internal directories.
Click to hide internal directories.