lib

package
v1.0.11-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *mongo.Client

Functions

This section is empty.

Types

type MongoConnect

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

func NewMongo

func NewMongo(client *mongo.Client) *MongoConnect

func (*MongoConnect) Close

func (c *MongoConnect) Close()

func (*MongoConnect) Collection

func (c *MongoConnect) Collection(name string) *mongo.Collection

func (*MongoConnect) Connect

func (c *MongoConnect) Connect()

Jump to

Keyboard shortcuts

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