diff options
author | Julien Dessaux | 2020-12-23 12:01:05 +0100 |
---|---|---|
committer | Julien Dessaux | 2020-12-23 12:01:05 +0100 |
commit | 484734ab36b06a9e6d35348e357312d99522302c (patch) | |
tree | cb8e57bd56316b1a111ab7a3f13444344deeca2f /config/app.go | |
parent | Initial import (diff) | |
download | shell-game-launcher-484734ab36b06a9e6d35348e357312d99522302c.tar.gz shell-game-launcher-484734ab36b06a9e6d35348e357312d99522302c.tar.bz2 shell-game-launcher-484734ab36b06a9e6d35348e357312d99522302c.zip |
Implemented the configuration file format
Diffstat (limited to '')
-rw-r--r-- | config/app.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/config/app.go b/config/app.go new file mode 100644 index 0000000..541699c --- /dev/null +++ b/config/app.go @@ -0,0 +1,17 @@ +package config + +// App struct contains the configuration for this application +type App struct { + // WorkingDirectory is the program working directory where the user data, save files and scores are stored + WorkingDirectory string `yaml:"WorkingDirectory"` + // MaxUsers is the maximum amount of registered users to allow + MaxUsers int `yaml:"MaxUsers"` + // AllowRegistration allows registration of new users + AllowRegistration bool `yaml:"AllowRegistration"` + // MaxNickLen Maximum length for a nickname + MaxNickLen int `yaml:"MaxNickLen"` + // MenuMaxIdleTime is the maximum number of seconds a user can be idle on the menu before the program exits + MenuMaxIdleTime int `yaml:"MenuMaxIdleTime"` + // PostLoginCommands is the list of commands to execute upon login, like creating save directories for games + PostLoginCommands []string `yaml:"PostLoginCommands"` +} |