db

package
v0.0.0-...-310dcff Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(session *mgo.Session, command Command) error

func GetMongoCollection

func GetMongoCollection(session *mgo.Session, name string) *mgo.Collection

func GetMongoSession

func GetMongoSession() *mgo.Session

func Query

func Query(session *mgo.Session, query QueryDef) (interface{}, error)

Types

type Command

type Command func(session *mgo.Session) (err error)

type QueryDef

type QueryDef func(session *mgo.Session) (result interface{}, err error)

Jump to

Keyboard shortcuts

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