Documentation ¶
Index ¶
- Constants
- func GetAuthKeysDAO(dbName string) (dao *mysql_dao.AuthKeysDAO)
- func GetAuthOpLogsDAO(dbName string) (dao *mysql_dao.AuthOpLogsDAO)
- func GetAuthUsersDAO(dbName string) (dao *mysql_dao.AuthUsersDAO)
- func GetAuthsDAO(dbName string) (dao *mysql_dao.AuthsDAO)
- func GetMysqlDAOListMap() map[string]*MysqlDAOList
- func InstallMysqlDAOManager(clients sync.Map)
- type MysqlDAOList
- type MysqlDAOManager
Constants ¶
View Source
const ( DB_MASTER = "immaster" DB_SLAVE = "imslave" )
Variables ¶
This section is empty.
Functions ¶
func GetAuthKeysDAO ¶
func GetAuthKeysDAO(dbName string) (dao *mysql_dao.AuthKeysDAO)
func GetAuthOpLogsDAO ¶
func GetAuthOpLogsDAO(dbName string) (dao *mysql_dao.AuthOpLogsDAO)
func GetAuthUsersDAO ¶
func GetAuthUsersDAO(dbName string) (dao *mysql_dao.AuthUsersDAO)
func GetAuthsDAO ¶
func GetMysqlDAOListMap ¶
func GetMysqlDAOListMap() map[string]*MysqlDAOList
func InstallMysqlDAOManager ¶
Types ¶
type MysqlDAOList ¶
type MysqlDAOList struct { AuthKeysDAO *mysql_dao.AuthKeysDAO AuthOpLogsDAO *mysql_dao.AuthOpLogsDAO AuthsDAO *mysql_dao.AuthsDAO AuthUsersDAO *mysql_dao.AuthUsersDAO }
func GetMysqlDAOList ¶
func GetMysqlDAOList(dbName string) (daoList *MysqlDAOList)
type MysqlDAOManager ¶
type MysqlDAOManager struct {
// contains filtered or unexported fields
}
TODO(@benqi): 一主多从
Click to show internal directories.
Click to hide internal directories.