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

# Functions

CompositeSelector combines multiple selectors into a single selector.
DiffTopology compares the two topology descriptions and returns the difference.
LatencySelector creates a ServerSelector which selects servers based on their latency.
MaxStalenessSupported returns an error if the given server version does not support max staleness.
NewServer creates a new server description from the given parameters.
NewVersionRange creates a new VersionRange given a min and a max.
ReadPrefSelector selects servers based on the provided read preference.
ScramSHA1Supported returns an error if the given server version does not support scram-sha-1.
SessionsSupported returns true of the given server version indicates that it supports sessions.
WriteSelector selects all the writable servers.

# Constants

These constants are the possible types of servers.
These constants are the available topology configurations.
These constants are the available topology configurations.
These constants are the available topology configurations.
These constants are the possible types of servers.
These constants are the possible types of servers.
These constants are the possible types of servers.
These constants are the possible types of servers.
These constants are the possible types of servers.
These constants are the available topology configurations.
These constants are the available topology configurations.
These constants are the possible types of servers.
Unknown is an unknown server or topology kind.
UnsetRTT is the unset value for a round trip time.

# Structs

SelectedServer represents a selected server that is a member of a topology.
Server represents a description of a server.
Topology represents a description of a mongodb topology.
TopologyDiff is the difference between two different topology descriptions.
Version represents a software version.
VersionRange represents a range of versions.

# Interfaces

ServerSelector is an interface implemented by types that can select a server given a topology description.

# Type aliases

ServerKind represents the type of a server.
ServerSelectorFunc is a function that can be used as a ServerSelector.
TopologyKind represents a specific topology configuration.