mongo

package
v0.0.0-...-57e2081 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoClient

type MongoClient struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(connectUri string) *MongoClient

func (*MongoClient) Close

func (this *MongoClient) Close()

func (*MongoClient) GetClient

func (this *MongoClient) GetClient() *mongo.Client

func (*MongoClient) GetCollection

func (this *MongoClient) GetCollection(databaseName string, collectionName string) *mongo.Collection

func (*MongoClient) GetDatabase

func (this *MongoClient) GetDatabase(databaseName string) *mongo.Database

Jump to

Keyboard shortcuts

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