database

package
v0.0.0-...-90500bb Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCompanyIntoDatabase

func AddCompanyIntoDatabase(c types.Company, persist bool) error

func GetCollection

func GetCollection(collection string) (*mgo.Session, *mgo.Collection, error)

func GetDatabase

func GetDatabase() (*mgo.Session, *mgo.Database, error)

func GetSession

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

Types

type DatabaseOptions

type DatabaseOptions struct {
	Testing bool
}
var Options DatabaseOptions

Jump to

Keyboard shortcuts

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