config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIKeys

func GetAPIKeys() []string

GetAPIKeys returns the list of API keys.

func GetBindHost

func GetBindHost() string

GetBindHost returns the host to bind the web server to.

func GetBindPort

func GetBindPort() int

GetBindPort returns the port to bind the web server to.

func GetClosedPin

func GetClosedPin() int

GetClosedPin returns the GPIO pin number for the closed state.

func GetMQTTClientID added in v0.0.2

func GetMQTTClientID() string

GetMQTTClientID returns the client ID for the MQTT client.

func GetMQTTDiscoveryPrefix added in v0.0.2

func GetMQTTDiscoveryPrefix() string

GetMQTTDiscoveryPrefix returns the discovery prefix for the MQTT client.

func GetMQTTEnabled added in v0.0.2

func GetMQTTEnabled() bool

GetMQTTEnabled returns whether MQTT is enabled.

func GetMQTTObjectID added in v0.0.2

func GetMQTTObjectID() string

GetMQTTObjectID returns the object ID for the MQTT client.

func GetMQTTPassword added in v0.0.2

func GetMQTTPassword() string

GetMQTTPassword returns the password for the MQTT client.

func GetMQTTURL added in v0.0.2

func GetMQTTURL() string

GetMQTTURL returns the URL for the MQTT broker.

func GetMQTTUsername added in v0.0.2

func GetMQTTUsername() string

GetMQTTUsername returns the client ID for the MQTT client.

func GetMode

func GetMode() string

GetMode returns the current mode.

func GetOpenPin

func GetOpenPin() int

GetOpenPin returns the GPIO pin number for the open state.

func GetTogglePin

func GetTogglePin() int

GetTogglePin returns the GPIO pin number for the toggle state.

func Verify

func Verify() error

Verify that the configuration is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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