models

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewMongoDB added in v0.4.15

func NewMongoDB(ctx context.Context, addr, dbName, user, pwd string) (db *DB, err error)

func (*DB) Close

func (d *DB) Close()

func (*DB) GetCol

func (d *DB) GetCol(colName string) *mgo.Collection

func (*DB) GetDB added in v0.4.15

func (d *DB) GetDB() *mgo.Database

Jump to

Keyboard shortcuts

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