Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunMigrations ¶
func RunMigrations(db *GormDatabase) error
Types ¶
type Config ¶
type Config struct { MysqlHost string `json:"mysqlHost" koanf:"mysql_host"` MysqlDatabase string `json:"mysqlDatabase" koanf:"mysql_database"` MysqlUser string `json:"mysqlUser" koanf:"mysql_user"` MysqlPassword string `json:"mysqlPassword" koanf:"mysql_password"` MysqlPort string `json:"mysqlPort" koanf:"mysql_port"` }
type GormDatabase ¶
func New ¶
func New(cfg Config) (database *GormDatabase)
Click to show internal directories.
Click to hide internal directories.