database

package
v0.0.0-...-a522a1c Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 9 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

Client instance

Functions

func ConnectDB

func ConnectDB() *mongo.Client

func GetAllEntities

func GetAllEntities() ([]models.EntityInfo, error)

func GetCollection

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

getting database collections

func GetEntities

func GetEntities() ([]models.EntityInfo, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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