Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StoreInitDB map[string]*StoreDbClient
全局使用DB,就需要把DB定义成公有的
Functions ¶
Types ¶
type Mysql ¶
type Mysql struct { Name string `mapstructure:"name"` Master MysqlConfig `mapstructure:"master"` Slave MysqlConfig `mapstructure:"slave"` }
type MysqlConfig ¶
type StoreDbClient ¶
func LoadDBByName ¶
func LoadDBByName(dbName string) *StoreDbClient
Click to show internal directories.
Click to hide internal directories.