database

package
v0.0.0-...-0fccaea Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB              *mongo.Client = ConnectDB()
	ListCollections []string      = []string{"planets", "films"}
)

Client instance

Functions

func ConnectDB

func ConnectDB() *mongo.Client

func GetCollection

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

get database collections

Types

This section is empty.

Jump to

Keyboard shortcuts

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