mongo

package
v0.0.0-...-23d2696 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDB

type AppDB struct {
	Session *mgo.Session
	Config  *config.AppDatabase
}

func GetAppDB

func GetAppDB() (*AppDB, error)

func (*AppDB) Connect

func (this *AppDB) Connect() (*mgo.Session, error)

func (AppDB) Setup

func (this AppDB) Setup() (AppDB, error)

Jump to

Keyboard shortcuts

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