first
This commit is contained in:
19
config/gorm.go
Normal file
19
config/gorm.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package config
|
||||
|
||||
const (
|
||||
TypeSqlite = "sqlite"
|
||||
TypeMysql = "mysql"
|
||||
)
|
||||
|
||||
type Gorm struct {
|
||||
Type string `mapstructure:"type"`
|
||||
MaxIdleConns int `mapstructure:"max-idle-conns"`
|
||||
MaxOpenConns int `mapstructure:"max-open-conns"`
|
||||
}
|
||||
|
||||
type Mysql struct {
|
||||
Addr string `mapstructure:"addr"`
|
||||
Username string `mapstructure:"username"`
|
||||
Password string `mapstructure:"password"`
|
||||
Dbname string `mapstructure:"dbname"`
|
||||
}
|
||||
Reference in New Issue
Block a user