mongoDBConnection

package
v4.39.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Lowest-level code to connect to Mongo DB (locally in Docker and remotely) and get consistant collection names.

Lowest-level code to connect to Mongo DB (locally in Docker and remotely) and get consistant collection names.

Lowest-level code to connect to Mongo DB (locally in Docker and remotely) and get consistant collection names.

Lowest-level code to connect to Mongo DB (locally in Docker and remotely) and get consistant collection names.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabaseName

func GetDatabaseName(dbName string, envName string) string

Types

type MongoConnectionDetails added in v4.32.3

type MongoConnectionDetails struct {
	Host     string
	User     string
	Password string
}

func Connect

func Connect(
	sess *session.Session,
	mongoSecret string,
	iLog logger.ILogger,
) (*mongo.Client, MongoConnectionDetails, error)

type MongoConnectionInfo

type MongoConnectionInfo struct {
	DbClusterIdentifier string `json:"dbClusterIdentifier"`
	Password            string `json:"password"`
	Engine              string `json:"engine"`
	Port                string `json:"port"`
	Host                string `json:"host"`
	Ssl                 string `json:"ssl"`
	Username            string `json:"username"`
}

Jump to

Keyboard shortcuts

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