Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *gorm.DB
Functions ¶
func Init ¶
func Init(opt *ConOptions)
Types ¶
type ConOptions ¶
type ConOptions struct { Address string `yaml:"address"` Username string `yaml:"username"` Password string `yaml:"password"` Database string `yaml:"database"` MaxIdleConns int `yaml:"maxIdleConns"` MaxOpenConns int `yaml:"maxOpenConns"` ConnMaxLifetime int `yaml:"connMaxLifetime"` AutoMigrate bool `yaml:"autoMigrateh"` }
Click to show internal directories.
Click to hide internal directories.