Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database struct { Debug bool `mapstructure:"debug"` Host string `mapstructure:"host"` User string `mapstructure:"user"` Port int `mapstructure:"port"` Password string `mapstructure:"password"` Name string `mapstructure:"name"` Type DatabaseType `mapstructure:"type"` MaxIdleConns int `mapstructure:"max_idle_conns"` MaxOpenConns int `mapstructure:"max_open_conns"` MaxLifetimeSec int `mapstructure:"max_lifetime"` ReadTimeout string `mapstructure:"read_timeout"` WriteTimeout string `mapstructure:"write_timeout"` }
type DatabaseType ¶
type DatabaseType string
const ( // MySQL ... MySQL DatabaseType = "mysql" // Postgres ... Postgres DatabaseType = "postgres" )
Click to show internal directories.
Click to hide internal directories.