database

package
v0.1.0-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDb

func GetDb(sess *mgo.Session) *mgo.Database

func GetSession

func GetSession() (*mgo.Session, error)

Types

type DataStore

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

func NewDataStore

func NewDataStore(c *config.Config) *DataStore

func (*DataStore) C

func (d *DataStore) C(c string) *mgo.Collection

func (*DataStore) Close

func (d *DataStore) Close()

func (*DataStore) NewDataStore

func (d *DataStore) NewDataStore() *DataStore

Jump to

Keyboard shortcuts

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