Documentation ¶ Index ¶ Variables func Dial(ctx context.Context, conf *Config) (mongo.Client, error) type Config type SSLConfig Constants ¶ This section is empty. Variables ¶ View Source var ( ErrMsgAuthFailedStr = "server returned error on SASL authentication step: Authentication failed." ErrNoReachableServersStr = "no reachable servers" ) Functions ¶ func Dial ¶ func Dial(ctx context.Context, conf *Config) (mongo.Client, error) Types ¶ type Config ¶ type Config struct { mongo.Config SSL *SSLConfig } type SSLConfig ¶ type SSLConfig struct { Enabled bool PEMKeyFile string CAFile string Insecure bool } Source Files ¶ View all Source files config.go db.go ssl.go Click to show internal directories. Click to hide internal directories.