database

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

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

Go to latest
Published: Sep 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() error

func ConnectRealtime

func ConnectRealtime() error

func ConnectStandard

func ConnectStandard() error

func GetCollection

func GetCollection(collectionName string) *mongo.Collection

Types

type MongoInstance

type MongoInstance struct {
	Client   *mongo.Client
	Database *mongo.Database
}
var Instance *MongoInstance
var RealtimeJourneyInstance *MongoInstance

func GetInstance

func GetInstance(collectionName string) *MongoInstance

Jump to

Keyboard shortcuts

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