# Functions
CompositeSelector combines multiple selectors into a single selector.
LatencySelector creates a ServerSelector which selects servers based on their latency.
New creates a new cluster.
NewWithMonitor creates a new Cluster from an existing monitor.
SelectServers returns a list of server descriptions matching a given selector.
StartMonitor begins monitoring a cluster.
WithConnString configures the cluster using the connection string.
WithMode configures the cluster's monitor mode.
WithMoreServerOptions configures a cluster's server options for when a new server needs to get created.
WithReplicaSetName configures the cluster's default replica set name.
WithSeedList configures a cluster's seed list.
WithServerOptions configures a cluster's server options for when a new server needs to get created.
WriteSelector selects all the writable servers.
# Variables
ErrClusterClosed occurs on an attempt to use a closed cluster.
# Interfaces
Server represents a logical connection to a server.
# Type aliases
MonitorMode indicates the mode with which to run the monitor.
Option configures a cluster.
ServerSelector is a function that selects a server.