Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "1.0"
Version is the box version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ListenAddress string SecretKey string MaxUsers int64 UploadDirectory string DatabaseFile string JWTSecret string }
Config holds the global configuration of the app
func (*Config) GetFromDotEnv ¶
func (c *Config) GetFromDotEnv()
GetFromDotEnv gets the config from the .env file
func (*Config) GetFromEnv ¶
func (c *Config) GetFromEnv()
GetFromEnv gets the config from environment variables
func (*Config) InitConfig ¶
InitConfig initializes the configuration object
Click to show internal directories.
Click to hide internal directories.