db

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL