db

package
v0.0.0-...-ee68831 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoStore

type MongoStore struct {
	Database     string
	AuthDatabase string
	Session      *mgo.Session
	User         string
	Password     string
	Host         string
	Port         int
}
var StoreObject MongoStore

MONGO local MongoObject

func Cloner

func Cloner() *MongoStore

Cloner clones the local MONGO object

func (MongoStore) Init

func (store MongoStore) Init(done chan bool)

InitMongo set MongoDB connection

type RedisStore

type RedisStore struct {
	Name   string
	Client *redis.Client
}
var RedisServer RedisStore

MONGO local MongoObject

func (RedisStore) Run

func (store RedisStore) Run(done chan bool)

InitMongo set MongoDB connection

Jump to

Keyboard shortcuts

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