mongo

package
v0.0.0-...-e37af68 Latest Latest
Warning

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

Go to latest
Published: May 6, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMongo

func CreateMongo(conf config.Configuration) (config.Driver, error)

CreateMongo creates a database driver

Types

type Mongo

type Mongo struct {
	Plugins    []*config.PlugConfig
	Connection *mgo.Session
}

Mongo Struct

func (*Mongo) ConvertToDriverError

func (db *Mongo) ConvertToDriverError(err error) error

func (*Mongo) MakeRequest

func (db *Mongo) MakeRequest(req *config.DBRequest) (interface{}, error)

MakeRequest implementation of the Mongo Driver.

Jump to

Keyboard shortcuts

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