database

package
v0.0.0-...-63ab681 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDatabase

type MongoDatabase struct {
	*mgo.Database
	// contains filtered or unexported fields
}

func New

func New(mongoDatabase *mgo.Database, collections []string) (*MongoDatabase, error)

func (*MongoDatabase) EnsureIndexes

func (mg *MongoDatabase) EnsureIndexes() error

func (*MongoDatabase) Insert

func (mg *MongoDatabase) Insert(collectionName string, object structures.Object) error

Jump to

Keyboard shortcuts

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