# Functions
AppendCompressedCompressedMessage appends the compressed wiremessage to dst.
AppendCompressedCompressorID appends the ID of the compressor to dst.
AppendCompressedOriginalOpCode appends the original opcode to dst.
AppendCompressedUncompressedSize appends the uncompressed size of a compressed wiremessage to dst.
AppendGetMoreCursorID appends the cursorID field to dst.
AppendGetMoreFullCollectionName appends the fullCollectionName field to dst.
AppendGetMoreNumberToReturn appends the numberToReturn field to dst.
AppendGetMoreZero appends the zero field to dst.
AppendHeader appends a header to dst.
AppendHeaderStart appends a header to the dst slice and returns an index where the wire message starts in dst and the updated slice.
AppendKillCursorsCursorIDs appends each the cursorIDs field to dst.
AppendKillCursorsNumberIDs appends the numberOfCursorIDs field to dst.
AppendKillCursorsZero appends the zero field to dst.
AppendMsgFlags appends the flags for an OP_MSG wire message.
AppendMsgSectionType appends the section type to dst.
AppendQueryFlags appends the flags for an OP_QUERY wire message.
AppendQueryFullCollectionName appends the full collection name to dst.
AppendQueryNumberToReturn appends the number to return to dst.
AppendQueryNumberToSkip appends the number to skip to dst.
AppendReplyCursorID appends the cursor ID to dst.
AppendReplyFlags appends the flags for an OP_REPLY wire message.
AppendReplyNumberReturned appends the number returned to dst.
AppendReplyStartingFrom appends the starting from field to dst.
IsMsgMoreToCome returns if the provided wire message is an OP_MSG with the more to come flag set.
NextRequestID returns the next request ID.
ReadCompressedCompressedMessage reads the compressed wiremessage to dst.
ReadCompressedCompressorID reads the ID of the compressor to dst.
ReadCompressedOriginalOpCode reads the original opcode from src.
ReadCompressedUncompressedSize reads the uncompressed size of a compressed wiremessage to dst.
ReadHeader reads a wire message header from src.
ReadKillCursorsCursorIDs reads numIDs cursor IDs from src.
ReadKillCursorsNumberIDs reads the numberOfCursorIDs field from src.
ReadKillCursorsZero reads the zero field from src.
ReadMsgChecksum reads a checksum from src.
ReadMsgFlags reads the OP_MSG flags from src.
ReadMsgSectionDocumentSequence reads an identifier and document sequence from src and returns the document sequence data parsed into a slice of BSON documents.
ReadMsgSectionRawDocumentSequence reads an identifier and document sequence from src and returns the raw document sequence data.
ReadMsgSectionSingleDocument reads a single document from src.
ReadMsgSectionType reads the section type from src.
ReadQueryFlags reads OP_QUERY flags from src.
ReadQueryFullCollectionName reads the full collection name from src.
ReadQueryNumberToReturn reads the number to return from src.
ReadQueryNumberToSkip reads the number to skip from src.
ReadQueryQuery reads the query from src.
ReadQueryReturnFieldsSelector reads a return fields selector document from src.
ReadReplyCursorID reads a cursor ID from src.
ReadReplyDocument reads a reply document from src.
ReadReplyDocuments reads as many documents as possible from src.
ReadReplyFlags reads OP_REPLY flags from src.
ReadReplyNumberReturned reads the numbered returned from src.
ReadReplyStartingFrom reads the starting from src.
# Constants
These constants represent the individual flags of an OP_REPLY message.
These constants represent the individual flags on an OP_QUERY message.
These constants represent the individual flags on an OP_MSG message.
These constants represent the individual compressor IDs for an OP_COMPRESSED.
These constants represent the individual compressor IDs for an OP_COMPRESSED.
These constants represent the individual compressor IDs for an OP_COMPRESSED.
These constants represent the individual compressor IDs for an OP_COMPRESSED.
These constants represent the individual flags of an OP_REPLY message.
DefaultZlibLevel is the default level for zlib compression.
DefaultZstdLevel is the default level for zstd compression.
These constants represent the individual section types for a section in an OP_MSG.
These constants represent the individual flags on an OP_QUERY message.
These constants represent the individual flags on an OP_MSG message.
These constants represent the individual flags on an OP_MSG message.
These constants represent the individual flags on an OP_QUERY message.
These constants are the valid opcodes for the version of the wireprotocol supported by this library.
These constants are the valid opcodes for the version of the wireprotocol supported by this library.
These constants are the valid opcodes for the version of the wireprotocol supported by this library.
These constants are the valid opcodes for the version of the wireprotocol supported by this library.
These constants are the valid opcodes for the version of the wireprotocol supported by this library.
These constants are the valid opcodes for the version of the wireprotocol supported by this library.
These constants are the valid opcodes for the version of the wireprotocol supported by this library.
These constants represent the individual flags on an OP_QUERY message.
These constants are the valid opcodes for the version of the wireprotocol supported by this library.
Deprecated: Use OpMsg instead.
These constants are the valid opcodes for the version of the wireprotocol supported by this library.
These constants are the valid opcodes for the version of the wireprotocol supported by this library.
These constants represent the individual flags on an OP_QUERY message.
These constants represent the individual flags of an OP_REPLY message.
These constants represent the individual flags on an OP_QUERY message.
These constants represent the individual flags of an OP_REPLY message.
These constants represent the individual section types for a section in an OP_MSG.
These constants represent the individual flags on an OP_QUERY message.
# Type aliases
CompressorID is the ID for each type of Compressor.
MsgFlag represents the flags on an OP_MSG message.
OpCode represents a MongoDB wire protocol opcode.
QueryFlag represents the flags on an OP_QUERY message.
ReplyFlag represents the flags of an OP_REPLY message.
SectionType represents the type for 1 section in an OP_MSG.
WireMessage represents a MongoDB wire message in binary form.