database

package
v0.0.0-...-3db1f35 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2019 License: MIT Imports: 3 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 interface {
	// contains filtered or unexported methods
}

type MongoDb

type MongoDb struct {
	// contains filtered or unexported fields
}

func NewMongoDb

func NewMongoDb(uri string, database string) MongoDb

func (*MongoDb) Collection

func (m *MongoDb) Collection(name string) *mongo.Collection

func (*MongoDb) Connect

func (m *MongoDb) Connect() error

func (*MongoDb) GetQueryContext

func (m *MongoDb) GetQueryContext() context.Context

func (*MongoDb) Use

func (m *MongoDb) Use(database string)

Jump to

Keyboard shortcuts

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