package
1.10.11
Repository: https://github.com/bakharal/mongo-go-driver.git
Documentation: pkg.go.dev

# Packages

Package randutil provides common random number utilities.
No description provided by the author
No description provided by the author

# Functions

GetEncryptedStateCollectionName returns the encrypted state collection name associated with dataCollectionName.
No description provided by the author
MakeTimeoutContext returns a new context with Client-Side Operation Timeout (CSOT) feature-gated behavior and a Timeout set to the passed in Duration.
MultiError combines multiple errors into a single error.
NewBackgroundContext creates a new Context whose behavior matches that of context.Background(), but Value calls are forwarded to the provided ctx parameter.
NewCancellationListener constructs a CancellationListener.
RolledUpErrorMessage gets a flattened error message.
StringSliceFromRawElement decodes the provided BSON element into a []string.
StringSliceFromRawValue decodes the provided BSON value into a []string.
UnwrapError attempts to unwrap the error down to its root cause.
WrapError wraps an error with a message.
WrapErrorf wraps an error with a message.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrLoadBalancedWithDirectConnection is returned when loadBalanced=true is specified in a URI with the directConnection option.
ErrLoadBalancedWithMultipleHosts is returned when loadBalanced=true is specified in a URI with multiple hosts.
ErrLoadBalancedWithReplicaSet is returned when loadBalanced=true is specified in a URI with the replicaSet option.
ErrSRVMaxHostsWithLoadBalanced is returned when srvMaxHosts > 0 is specified in a URI with loadBalanced=true.
ErrSRVMaxHostsWithReplicaSet is returned when srvMaxHosts > 0 is specified in a URI with the replicaSet option.
LegacyHello is the legacy version of the hello command.
LegacyHelloLowercase is the lowercase, legacy version of the hello command.
LegacyNotPrimary is the legacy version of the "not primary" server error message.
Version is the current version of the driver.

# Structs

CancellationListener listens for context cancellation in a loop until the context expires or the listener is aborted.
ZeroRTTMonitor implements the RTTMonitor interface and is used internally for testing.

# Interfaces

WrappedError represents an error that contains another error.