mongo

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 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() *qmgo.Database

func (*MongoDB) GetTransactionClient

func (m *MongoDB) GetTransactionClient(collName string) (*qmgo.QmgoClient, error)

GetTransactionClient 这个方法肯定是在初始化后才有可能被调用

func (*MongoDB) Init

func (m *MongoDB) Init(mongodbConfigUrl string)

type MongoDBConf

type MongoDBConf struct {
	Uri      string
	Username string
	Password string
	DB       string
	Timeout  int64
	Max      uint64
	Min      uint64
}

Jump to

Keyboard shortcuts

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