mongo

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnConfig

type ConnConfig struct {
	Url      string `cnf:",NA"`
	Database string `cnf:",NA"`
	User     string `cnf:",NA"`
	Pass     string `cnf:",NA"`
}

Redigo初始化的配置参数

type MgoX

type MgoX struct {
	DB  *mongo.Database
	Cli *mongo.Client
	Ctx context.Context
}

Redigo初始化的配置参数

func NewMongo

func NewMongo(cf *ConnConfig) *MgoX

func (*MgoX) Close

func (mgX *MgoX) Close()

Jump to

Keyboard shortcuts

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