dao

package
v0.0.0-...-6e21e7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 GetAuthUsersDAO

func GetAuthUsersDAO(dbName string) (dao *mysql_dao.AuthUsersDAO)

func GetMysqlDAOListMap

func GetMysqlDAOListMap() map[string]*MysqlDAOList

func InstallMysqlDAOManager

func InstallMysqlDAOManager(clients sync.Map)

Types

type MysqlDAOList

type MysqlDAOList struct {
	// auth_key
	AuthKeysDAO  *mysql_dao.AuthKeysDAO
	AuthUsersDAO *mysql_dao.AuthUsersDAO
}

func GetMysqlDAOList

func GetMysqlDAOList(dbName string) (daoList *MysqlDAOList)

type MysqlDAOManager

type MysqlDAOManager struct {
	// contains filtered or unexported fields
}

TODO(@benqi): 一主多从

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL