Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DB represents a gorm DB DB *gorm.DB // ContentDB represents a content gorm DB ContentDB *gorm.DB )
Functions ¶
Types ¶
type Config ¶
type Config struct { IsDebugMode bool `toml:"debug" desc:"Enable debug mode"` IsDevMode bool `toml:"dev" desc:"Run in deveopment mode"` Title string `toml:"title" desc:"default title name"` Host string `toml:"host" desc:"host to listen on, e.g. :80"` Database Database `toml:"database" desc:"database"` ContentDatabase Database `toml:"content_database" desc:"database"` }
Config wraps all configuration options
type Database ¶
type Database struct { Username string `toml:"username" desc:"username, e.g. eqemu"` Password string `toml:"password" desc:"password, e.g. eqemupass"` Host string `toml:"host" desc:"host:port string, e.g. localhost:3306"` Database string `toml:"database" desc:"database name, e.g. eqemu"` }
Database contains connection info
Click to show internal directories.
Click to hide internal directories.