Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoFactory ¶
type MongoFactory struct {
// contains filtered or unexported fields
}
func GetMongoFactories ¶
func GetMongoFactories() *MongoFactory
func (*MongoFactory) CloseAllSessions ¶
func (m *MongoFactory) CloseAllSessions()
func (*MongoFactory) GetCOLL ¶
func (m *MongoFactory) GetCOLL(url string, dbName string, collName string) (*mgo.Collection, error)
func (*MongoFactory) GetSession ¶
func (m *MongoFactory) GetSession(url string) (*mgo.Session, error)
var uri string = "dming:dming@127.0.0.1:27017/dmingDB"
type RedisFactory ¶
type RedisFactory struct {
// contains filtered or unexported fields
}
func GetRedisFactory ¶
func GetRedisFactory() *RedisFactory
func (RedisFactory) CloseAllPool ¶
func (this RedisFactory) CloseAllPool()
Click to show internal directories.
Click to hide internal directories.