xconfig_mongo

package
v0.2.52 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mongo added in v0.2.1

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

func (*Mongo) CloseMongo added in v0.2.1

func (t *Mongo) CloseMongo(name ...string) (err error)

func (*Mongo) GetCol added in v0.2.1

func (t *Mongo) GetCol(name ...string) (col *mongo.Collection, err error)

func (*Mongo) GetDb added in v0.2.1

func (t *Mongo) GetDb(name ...string) (db *mongo.Database, err error)

GetDb get mongo database

func (*Mongo) GetMongo added in v0.2.1

func (t *Mongo) GetMongo(name ...string) (c *mongo.Client)

GetMongo get mongo instance

Jump to

Keyboard shortcuts

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