Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitMongoDbClient ¶
func InitMongoDbClient(dbConf MongoDBConf) (*mongo.Database, error)
Types ¶
type MongoDBConf ¶
type MysqlConf ¶
type MysqlConf struct { DataBase string `yaml:"database"` Addr string `yaml:"addr"` User string `yaml:"user"` Password string `yaml:"password"` Charset string `yaml:"charset"` MaxIdleConns int `yaml:"maxidleconns"` MaxOpenConns int `yaml:"maxopenconns"` ConnMaxIdlTime time.Duration `yaml:"maxIdleTime"` ConnMaxLifeTime time.Duration `yaml:"connMaxLifeTime"` ConnTimeOut time.Duration `yaml:"connTimeOut"` WriteTimeOut time.Duration `yaml:"writeTimeOut"` ReadTimeOut time.Duration `yaml:"readTimeOut"` }
type NormalPage ¶
Click to show internal directories.
Click to hide internal directories.