Documentation ¶
Index ¶
Constants ¶
View Source
const ( MongoCopyType = "1" MongoCloneType = "2" )
Variables ¶
View Source
var (
DBNAME = config.Conf.DB.DBName
)
Functions ¶
Types ¶
type MgoDBCntlr ¶
type MgoDBCntlr struct {
// contains filtered or unexported fields
}
mgo controller
func NewCloneMgoDBCntlr ¶
func NewCloneMgoDBCntlr() *MgoDBCntlr
func NewCopyMgoDBCntlr ¶
func NewCopyMgoDBCntlr() *MgoDBCntlr
func (*MgoDBCntlr) Close ¶
func (this *MgoDBCntlr) Close()
func (*MgoDBCntlr) GetDB ¶
func (this *MgoDBCntlr) GetDB() *mgo.Database
func (*MgoDBCntlr) GetTable ¶
func (this *MgoDBCntlr) GetTable(tableName string) *mgo.Collection
type RedisDBCntlr ¶
type RedisDBCntlr struct {
// contains filtered or unexported fields
}
redis controller
func NewRedisDBCntlr ¶
func NewRedisDBCntlr() *RedisDBCntlr
func (*RedisDBCntlr) Close ¶
func (this *RedisDBCntlr) Close()
func (*RedisDBCntlr) GetConn ¶
func (this *RedisDBCntlr) GetConn() redis.Conn
func (*RedisDBCntlr) Send ¶
func (this *RedisDBCntlr) Send(commandName string, args ...interface{}) error
Click to show internal directories.
Click to hide internal directories.