Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MgoConfig ¶
type MgoConfig struct {
Addrs string `json:"addrs"`
Timeout int `json:"timeout"`
Database string `json:"database"`
Username string `json:"username"`
Password string `json:"password"`
PoolLimit int `json:"poollimit"`
}
MgoConfig . mongo host:port/db_name -u username -p password
type MysqlC ¶
type MysqlC struct {
UserName string `json:"username"`
Password string `json:"password"`
Addr string `json:"addr"`
DBName string `json:"dbname"`
Charset string `json:"charset"`
ParseTime bool `json:"parsetime"`
Loc string `json:"loc"`
Pool int `json:"pool"`
}
MysqlC mysql server config struct
type RedisConfig ¶
type RedisConfig struct {
Addr string `json:"addr"`
Password string `json:"password"`
DB int `json:"db"`
}
RedisConfig .
func (*RedisConfig) String ¶
func (c *RedisConfig) String() string
Click to show internal directories.
Click to hide internal directories.