Documentation ¶
Overview ¶
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 ConnectToLocalMongoDB ¶
Assumes local mongo running in docker as per this command: docker run -d --name mongo-on-docker -p 27888:27017 -e MONGO_INITDB_ROOT_USERNAME=mongoadmin -e MONGO_INITDB_ROOT_PASSWORD=secret mongo
func ConnectToRemoteMongoDB ¶
func GetDatabaseName ¶
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"` }
func GetMongoConnectionInfoFromSecretCache ¶
func GetMongoConnectionInfoFromSecretCache(session *session.Session, secretName string) (MongoConnectionInfo, error)
Click to show internal directories.
Click to hide internal directories.