Documentation ¶
Index ¶
Constants ¶
View Source
const (
ADMIN_UID uint32 = 1
)
Variables ¶
This section is empty.
Functions ¶
func ConfigBuilder ¶
func ConfigBuilder() configBuilder
Types ¶
type DatabaseConfig ¶
type ServerConfig ¶
type ServerConfig struct { AdminEmail string `env:"ADMIN_EMAIL"` AdminPassword string `env:"ADMIN_PASSWORD"` ApiSecret string `env:"API_SECRET"` ServerUrl string `env:"SERVER_URL"` ConfigPath string `env:"CONFIG_PATH"` Dev bool `env:"DEV"` Port int `env:"PORT"` Database DatabaseConfig Smtp SmtpConfig }
func Config ¶
func Config() ServerConfig
func NewConfig ¶
func NewConfig() ServerConfig
Bootstrap the application Config struct with the default config
Click to show internal directories.
Click to hide internal directories.