Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DEV represents development environment DEV = "develop" // PRD represents production environment PRD = "production" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Database struct { Dialect string `default:"sqlite3"` Host string `default:"test.db"` Port string Dbname string Username string Password string Migration bool `default:"false"` } Redis struct { Enabled bool `default:"false"` ConnectionPoolSize int `yaml:"connection_pool_size" default:"10"` Host string Port string } Extension struct { MasterGenerator bool `yaml:"master_generator" default:"false"` CorsEnabled bool `yaml:"cors_enabled" default:"false"` SecurityEnabled bool `yaml:"security_enabled" default:"false"` } Log struct { Format string `default:"${time_rfc3339} [${level}] ${remote_ip} ${method} ${uri} ${status}"` Level log.Lvl `default:"2"` FilePath string `yaml:"file_path"` } Security struct { ExculdePath []string `yaml:"exclude_path"` UserPath []string `yaml:"user_path"` AdminPath []string `yaml:"admin_path"` } }
Config represents the composition of yml settings.
Click to show internal directories.
Click to hide internal directories.