mongo

package
v1.19.47 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mongodb

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

func (*Mongodb) Check

func (m *Mongodb) Check() error

func (*Mongodb) Close

func (m *Mongodb) Close()

func (*Mongodb) GetConnection

func (m *Mongodb) GetConnection(dbName ...string) (*mgo.Database, error)

func (*Mongodb) Init

func (m *Mongodb) Init(mongodbConfigUrl string)

func (*Mongodb) IsMultiDB added in v1.1.23

func (m *Mongodb) IsMultiDB() bool

func (*Mongodb) ListConnNames added in v1.1.23

func (m *Mongodb) ListConnNames() []string

func (*Mongodb) ReturnConnection

func (m *Mongodb) ReturnConnection(conn *mgo.Database)

Jump to

Keyboard shortcuts

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