mongo

package
v0.0.0-...-81c6b1d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mongo mongodb

Functions

func CollectionExists

func CollectionExists(database, collectionName string) (bool, error)

CollectionExists 集合是否存在

func GetMongoClient

func GetMongoClient() *mongo.Client

func Setup

func Setup() error

func Store2Mongo

func Store2Mongo() error

Store2Mongo 将配置保存到mongodb中

func UpdateNestedConfig

func UpdateNestedConfig(cfg interface{}, updates map[string]interface{}) error

UpdateNestedConfig 更新配置

Types

This section is empty.

Jump to

Keyboard shortcuts

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