mongo

package
v0.0.0-...-1eacf42 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CollectionType = reflect.TypeOf((*mgo.Collection)(nil))
View Source
var DatabaseType = reflect.TypeOf((*mgo.Database)(nil))
View Source
var SessionType = reflect.TypeOf((*mgo.Session)(nil))

Functions

func LoadCollection

func LoadCollection(cdi *container.IoC) *mgo.Collection

func LoadDatabase

func LoadDatabase(cdi *container.IoC) *mgo.Database

func LoadSession

func LoadSession(cdi *container.IoC) *mgo.Session

func MapManagerToCollection

func MapManagerToCollection(c *container.IoC, tv interface{}, name string) error

Types

type Component

type Component struct {
	URL, DB      string
	DialInfo     *mgo.DialInfo
	Session      *mgo.Session
	Copy, Master bool
}

func (*Component) Bootstrap

func (pp *Component) Bootstrap(a *app.App)

Directories

Path Synopsis
gridFs uses the mgo mongo driver to store sessions on mongo gridfs
gridFs uses the mgo mongo driver to store sessions on mongo gridfs

Jump to

Keyboard shortcuts

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