package
2.0.1
Repository: https://github.com/cleanarc/go-core.git
Documentation: pkg.go.dev

# Functions

GetConnString use this to connect to a mongodb cluster using basic auth only (no TLS).
GetLocalConnString use this for connecting to local (non-cluster) instances.
GetTLSConnString use this to connect to a mongodb cluster using basic auth and a TLS certificate.
NewClient creates and returns a new mongoDB client for the given connection string.
NewClientFromEnv this factory function bypasses params and pulls them right from the environment.
ParseEnv parses the mongo related environment variables and stores them in a ConnConfig struct.

# Structs

ConnConfig encapsulates the fields and options of a mongoDB connection.