Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port int `yaml:"port"` Database struct { Kind string `yaml:"type" mapstructure:"type"` // Database type (i.e. sqlite3, postgres, mysql, etc.) Addr string `yaml:"addr" mapstructure:"addr"` // Address of database. If database type is "sqlite3", then leave this field blank DatabaseName string `yaml:"name" mapstructure:"name"` // Database name, or in the case of sqlite3, the path to the database Username string `yaml:"user" mapstructure:"user"` // Database username Password string `yaml:"pass" mapstructure:"pass"` // Database password } `yaml:"db" mapstructure:"db"` ServerSettings ServerConfig `yaml:"server" mapstructure:"server"` }
Config is the structure containing all information needed to configure and run the server.
type ServerConfig ¶
type ServerConfig struct { DebugMode bool `yaml:"debug_mode" mapstructure:"debug_mode"` // Current server mode Secret string `yaml:"secret" mapstructure:"secret"` // JWT Secret }
ServerConfig contains all information relevant to the server post-initialization
Click to show internal directories.
Click to hide internal directories.