# Functions
IsValidServerMonitoringMode will return true if the given string matches a valid server monitoring mode.
Parse parses the provided URI into a ConnString object but does not check that all values are valid.
ParseAndValidate parses the provided URI into a ConnString object.
# Constants
ConnectMode constants.
Scheme constants.
Scheme constants.
ServerMonitoringModeAuto indicates that the client will behave like "poll" mode when running on a FaaS (Function as a Service) platform, or like "stream" mode otherwise.
ServerMonitoringModePoll indicates that the client will periodically check the server using a hello or legacy hello command and then sleep for heartbeatFrequencyMS milliseconds before running another check.
ServerMonitoringModeStream indicates that the client will use a streaming protocol when the server supports it.
ConnectMode constants.
# 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.
# Structs
ConnString represents a connection string to mongodb.
# Type aliases
ConnectMode informs the driver on how to connect to the server.