database

package
v0.0.0-...-355b964 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = DBInstance()

Client instantiate a Database instance

View Source
var (
	DB_NAME = "goax"
)

Functions

func DBInstance

func DBInstance() *mongo.Client

func OpenCollection

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

OpenCollection open a MongoDB collection

Types

This section is empty.

Jump to

Keyboard shortcuts

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