mongoDBConnection

package
v4.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 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 Connect

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

func GetDatabaseName

func GetDatabaseName(dbName string, envName string) string

Types

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