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

# 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.

# Constants

MonitorMode constants.
MonitorMode constants.

# Variables

ErrClusterClosed occurs on an attempt to use a closed cluster.

# Structs

Cluster represents a logical connection to a cluster.
Monitor continuously monitors the cluster for changes and reacts accordingly, adding or removing servers as necessary.

# 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.