# Functions
CappedProvider returns a Provider that is constrained by a resource limit.
ExecuteCommand executes the message on the channel.
ExecuteCommands executes the messages on the connection.
IsCommandNotFound indicates if the error is about a command not being found.
IsNsNotFound indicates if the error is about a namespace not being found.
New opens a connection to a server.
NewCommandResponseError creates a new CommandResponseError.
NewPool creates a new connection pool.
NewTLSConfig creates a new TLSConfig.
OpeningProvider returns a Factory that uses a dialer.
Tracked creates a tracked connection.
WithAppName sets the application name which gets sent to MongoDB on first connection.
WithCodec sets the codec to use to encode and decode messages.
WithConnectTimeout configures the maximum amount of time a dial will wait for a connect to complete.
WithDialer defines the dialer for endpoints.
WithIdleTimeout configures the maximum idle time to allow for a connection.
WithLifeTimeout configures the maximum life of a connection.
WithReadTimeout configures the maximum read time for a connection.
WithTLSConfig configures the SSL options for a connection.
WithWrappedDialer wraps the current dialer.
WithWriteTimeout configures the maximum read time for a connection.
# Variables
ErrMultiDocCommandResponse occurs when the server sent multiple documents in response to a command.
ErrNoCommandResponse occurs when the server sent no response document to a command.
ErrNoDocCommandResponse occurs when the server indicated a response existed, but none was found.
ErrPoolClosed is an error that occurs when attempting to use a pool that is closed.
ErrUnknownCommandFailure occurs when a command fails for an unknown reason.
# Structs
CommandError is an error in the execution of a command.
CommandFailureError is an error with a failure response as a document.
CommandResponseError is an error in the response to a command.
Error represents an error that in the connection package.
TLSConfig contains options for configuring an SSL connection to the server.
TrackedConnection is a connection that only closes once it's usage count is 0.
# Interfaces
Connection is responsible for reading and writing messages.
Pool holds connections such that they can be checked out and reused.