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

# Functions

New creates a new server.
NewWithMonitor creates a new Server from an existing monitor.
StartMonitor returns a new Monitor.
WithConnectionOpener configures the opener to use to create a new connection.
WithConnectionOptions configures server's connections.
WithHeartbeatInterval configures a server's heartbeat interval.
WithHeartbeatTimeout configures how long to wait for a heartbeat socket to connect.
WithMaxConnections configures maximum number of connections to allow for a given server.
WithMaxIdleConnections configures the maximum number of idle connections allowed for the server.
WithMoreConnectionOptions configures server's connections with additional options.
WithWrappedConnectionOpener configures a new opener to be used which wraps the current opener.

# Variables

ErrServerClosed occurs when an attempt to get a connection is made after the server has been closed.

# Structs

Monitor holds a channel that delivers updates to a server.
Server is a logical connection to a server.

# Type aliases

Option configures a server.