utils

package
v0.0.0-...-e814148 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnQuery *mongo.Client
View Source
var MongoCtx context.Context
View Source
var MongoCtxCancel context.CancelFunc

Functions

func CloseMongoClient

func CloseMongoClient()

func LogConfig

func LogConfig()

func MongoDBInit

func MongoDBInit()

MongoDBInit 数据库连接

func OpenCollection

func OpenCollection(client *mongo.Client, collectionName string) *mongo.Collection

Types

This section is empty.

Jump to

Keyboard shortcuts

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