Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMongoDatabase ¶ added in v1.7.19
func GetMongoDatabase(dsn, name string, certConfig *MongoSSLConfig) (db *mongo.Database, err error)
GetMongoDatabase returns a valid database connection to the configured MongoDB database
Types ¶
type MongoSSLConfig ¶ added in v1.7.19
type MongoSSLConfig struct {
// SSLClientCertificateKeyFile specifies a path to the client certificate and private key, which must be concatenated into one file.
SSLClientCertificateKeyFile string
// SSLClientCertificateKeyFilePassword specifies the password to decrypt the client private key file
SSLClientCertificateKeyFilePassword string
// SSLCertificateAuthoritiyFile specifies the path to a single or bundle of certificate authorities
SSLCertificateAuthoritiyFile string
}
MongoSSLConfig contains the configurations necessary for an SSL connection
Click to show internal directories.
Click to hide internal directories.