mongodb

package
v0.0.0-...-cb7d7c7 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SourceClient *mongo.Client
)

Functions

func DisconnectSourceClient

func DisconnectSourceClient()

注销源链接

func InitClient

func InitClient(uri string) (*mongo.Client, error)

初始化一个mongo链接

func InitSourceClient

func InitSourceClient(cfg *config.Config) (err error)

源mongo链接

Types

This section is empty.

Jump to

Keyboard shortcuts

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