Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { StationsInformationUrl string StationsStatusUrl string AppIdentifier string Http Http ViewConfig ViewConfig }
Config is the main configuration struct, holding sub-structs for each type of configuration.
var (
AppConfig Config // AppConfig is a global variable used to access the config struct.
)
func GetDefaultConfig ¶
func GetDefaultConfig() Config
GetDefaultConfig populates the default configuration struct.
func LoadConfig ¶
func LoadConfig() Config
LoadConfig does as the name suggests - loads the config. If the config.toml file is not found, it will create one using the default config defined in getDefaultConfig().
Click to show internal directories.
Click to hide internal directories.