basedb

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

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

Go to latest
Published: Apr 21, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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()

func (RedisFactory) GetPool

func (this RedisFactory) GetPool(url string) *redis.Pool

Jump to

Keyboard shortcuts

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