Documentation
¶
Index ¶
- Constants
- func GetDocumentsDAO(dbName string) (dao *mysql_dao.DocumentsDAO)
- func GetFilePartsDAO(dbName string) (dao *mysql_dao.FilePartsDAO)
- func GetFilesDAO(dbName string) (dao *mysql_dao.FilesDAO)
- func GetMysqlDAOListMap() map[string]*MysqlDAOList
- func GetPhotoDatasDAO(dbName string) (dao *mysql_dao.PhotoDatasDAO)
- 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 GetDocumentsDAO ¶
func GetDocumentsDAO(dbName string) (dao *mysql_dao.DocumentsDAO)
func GetFilePartsDAO ¶
func GetFilePartsDAO(dbName string) (dao *mysql_dao.FilePartsDAO)
func GetFilesDAO ¶
func GetMysqlDAOListMap ¶
func GetMysqlDAOListMap() map[string]*MysqlDAOList
func GetPhotoDatasDAO ¶
func GetPhotoDatasDAO(dbName string) (dao *mysql_dao.PhotoDatasDAO)
func InstallMysqlDAOManager ¶
Types ¶
type MysqlDAOList ¶
type MysqlDAOList struct { FilePartsDAO *mysql_dao.FilePartsDAO FilesDAO *mysql_dao.FilesDAO PhotoDatasDAO *mysql_dao.PhotoDatasDAO DocumentsDAO *mysql_dao.DocumentsDAO }
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.