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

# Packages

No description provided by the author
Package auth is not for public use.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package topology contains types that handles the discovery, monitoring, and selection of servers.
No description provided by the author
No description provided by the author

# Functions

CompressPayload takes a byte slice and compresses it according to the options passed.
DecompressPayload takes a byte slice that has been compressed and undoes it according to the options passed.
NewBatchCursor creates a new BatchCursor from the provided parameters.
NewCommandResponseError creates a CommandResponseError.
NewCrypt creates a new Crypt instance configured with the given AutoEncryptionOptions.
NewCursorResponse constructs a cursor response from the given response and server.
NewEmptyBatchCursor returns a batch cursor that is empty.
NewLegacyListCollectionsBatchCursor creates a new legacy ListCollectionsCursor.
NewListCollectionsBatchCursor creates a new non-legacy ListCollectionsCursor.

# Constants

These constants represent the three different kinds of legacy operations.
These constants represent the three different kinds of legacy operations.
These constants represent the three different kinds of legacy operations.
These constants represent the three different kinds of legacy operations.
These constants represent the three different kinds of legacy operations.
These constants represent the three different kinds of legacy operations.
THese are the availables types of Type.
RetryContext will enable retrying until the context.Context's deadline is exceeded or it is cancelled.
RetryNone disables retrying.
RetryOnce will enable retrying the entire operation once.
RetryOncePerCommand will enable retrying each command associated with an operation.
THese are the availables types of Type.

# Variables

ErrCursorNotFound is the cursor not found error for legacy find operations.
ErrDocumentTooLarge occurs when a document that is larger than the maximum size accepted by a server is passed to an insert command.
ErrFilterType is returned when the filter for a legacy list collections operation is of the wrong type.
ErrMultiDocCommandResponse occurs when the server sent multiple documents in response to a command.
ErrNoDocCommandResponse occurs when the server indicated a response existed, but none was found.
ErrNonPrimaryReadPref is returned when a read is attempted in a transaction with a non-primary read preference.
ErrReplyDocumentMismatch occurs when the number of documents returned in an OP_QUERY does not match the numberReturned field.
ErrUnacknowledgedWrite is returned from functions that have an unacknowledged write concern.
ErrUnsupportedStorageEngine is returned when a retryable write is attempted against a server that uses a storage engine that does not support retryable writes.
NetworkError is an error label for network errors.
RetryableWriteError is an error lable for retryable write errors.
TransientTransactionError is an error label for transient errors with transactions.
UnknownTransactionCommitResult is an error label for unknown transaction commit results.

# Structs

BatchCursor is a batch implementation of a cursor.
Batches contains the necessary information to batch split an operation.
CompressionOpts holds settings for how to compress a payload.
Crypt consumes the libmongocrypt.MongoCrypt type to iterate the mongocrypt state machine and perform encryption and decryption.
CryptOptions specifies options to configure a Crypt instance.
CursorOptions are extra options that are required to construct a BatchCursor.
CursorResponse represents the response from a command the results in a cursor.
Error is a command execution error from the database.
InvalidOperationError is returned from Validate and indicates that a required field is missing from an instance of Operation.
ListCollectionsBatchCursor is a special batch cursor returned from ListCollections that properly handles current and legacy ListCollections operations.
Operation is used to execute an operation.
QueryFailureError is an error representing a command failure as a document.
ResponseError is an error parsing the response to a command.
SingleConnectionDeployment is an implementation of Deployment that always returns the same Connection.
SingleServerDeployment is an implementation of Deployment that always returns a single server.
Subscription represents a subscription to topology updates.
WriteCommandError is an error for a write command.
WriteConcernError is a write concern failure that occurred as a result of a write operation.
WriteError is a non-write concern failure that occurred as a result of a write operation.

# Interfaces

Compressor is an interface used to compress wire messages.
Connection represents a connection to a MongoDB server.
Connector represents a type that can connect to a server.
Deployment is implemented by types that can select a server from a deployment.
Disconnector represents a type that can disconnect from a server.
ErrorProcessor implementations can handle processing errors, which may modify their internal state.
Expirable represents an expirable object.
Handshaker is the interface implemented by types that can perform a MongoDB handshake over a provided driver.Connection.
LocalAddresser is a type that is able to supply its local address.
Server represents a MongoDB server.
Subscriber represents a type to which another type can subscribe.

# Type aliases

CollectionInfoFn is a callback used to retrieve collection information.
KeyRetrieverFn is a callback used to retrieve keys from the key vault.
LegacyOperationKind indicates if an operation is a legacy find, getMore, or killCursors.
MarkCommandFn is a callback used to add encryption markings to a command.
RetryMode specifies the way that retries are handled for retryable operations.
Type specifies whether an operation is a read, write, or unknown.
WriteErrors is a group of non-write concern failures that occurred as a result of a write operation.