package
0.2.21
Repository: https://github.com/plainq/servekit.git
Documentation: pkg.go.dev

# Functions

New returns a pointer to a new instance of Conn struct.
WithAppName sets app name to the connection properties.
WithConnectTimeout specifies a timeout that is used for creating connections to the server.
WithDirectConnection sets ability to make direct connection.
WithReadPref sets the Mongo read preference which determines which servers are considered suitable for read operations.

# Structs

Conn wraps the connection to the MongoDB.
ConnOptions represents the configuration options for the MongoDB connection Conn.

# Type aliases

Option configures the mongo options.ClientOptions.