Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultInterfaceIP = "0.0.0.0" DefaultInterfaceDevice = "" DefaultPort = "8888" DefaultDocRoot = "./static" DefaultIndexTemplate = "index.html" DefaultFactoryReset = false DefaultSnapControl = false DefaultUseNetworkManager = false )
Default settings
Variables ¶
This section is empty.
Functions ¶
func StoreParameters ¶
StoreParameters stores the configuration parameters on the filesystem
Types ¶
type Custom ¶
type Custom struct { Title string `yaml:"title" json:"title"` SubTitle string `yaml:"subtitle" json:"subtitle"` Copyright string `yaml:"copyright" json:"copyright"` Bullets []struct { Text string `yaml:"text" json:"text"` URL string `yaml:"url" json:"url"` } `yaml:"bullets" json:"bullets"` }
Custom holds the custom settings from the content interface
type Settings ¶
type Settings struct { HideInterfaces []string NetworkInterfaceDevice string NetworkInterfaceIP string Port string DocRoot string IndexTemplate string FactoryReset bool SnapControl bool UseNetworkManager bool Custom Custom }
Settings defines the application configuration
func ReadParameters ¶
func ReadParameters() *Settings
ReadParameters fetches the store config parameters
Click to show internal directories.
Click to hide internal directories.