mongo

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient() *mongo.Client

====================== 业务板块 ======================

Types

type Instance

type Instance struct {
	MongoUri       string `yaml:"uri"`
	Username       string `yaml:"username"`
	Password       string `yaml:"password"`
	ConnectTimeout int64  `yaml:"connect_timeout"`
}

func (*Instance) GetName

func (i *Instance) GetName() string

func (*Instance) Run

func (i *Instance) Run() (err error)

Jump to

Keyboard shortcuts

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