Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
DbType string `yaml:"db_type,omitempty"` // 数据库类型,默认为mysql
DbName string `yaml:"dbname,omitempty"` // 数据库名称
Db uint32 `yaml:"db,omitempty"` // 数据库编号
User string `yaml:"user,omitempty"` // 数据库用户名
Password string `yaml:"password,omitempty"` // 数据库密码
Host string `yaml:"host,omitempty"` // 数据库主机地址
Port uint32 `yaml:"port,omitempty"` // 数据库端口
Slaves map[int32]*Config `yaml:"slaves,omitempty"` // 从库配置列表
}
Config 数据库分片配置
Click to show internal directories.
Click to hide internal directories.