package
0.1.1
Repository: https://github.com/zaporter/go-update-mongo.git
Documentation: pkg.go.dev

# Functions

LoadRecords finds all .bin files recursively, selects up to the limit at random (or all if limit <= 0), and parses them.
MakeOpMsgSection creates [OpMsgSection] with a single document.
ReadMessage reads from reader and returns wire header and body.
WriteMessage validates msg and headers and writes them to the writer.

# Constants

MaxMsgLen is the maximum message length.
MsgHeaderLen is an expected len of the header.
OP_COMPRESSED.
OP_DELETE.
OP_GET_BY_OID.
OP_GET_MORE.
OP_INSERT.
OP_KILL_CURSORS.
OP_MSG.
OP_QUERY.
OP_REPLY.
OP_UPDATE.
checksumPresent.
exhaustAllowed.
moreToCome.
AwaitData.
Exhaust.
NoCursorTimeout.
OplogReplay.
Partial.
SlaveOk.
TailableCursor.
AwaitCapable.
CursorNotFound.
QueryFailure.
ShardConfigStale.

# Variables

ErrZeroRead is returned when zero bytes was read from connection, indicating that connection was closed by the client.

# Structs

MsgHeader in general, each message consists of a standard message header followed by request-specific data.
OpMsg is an extensible message format designed to subsume the functionality of other opcodes.
OpMsgSection is one or more sections contained in an OpMsg.
OpQuery is used to query the database for documents in a collection.
OpReply is a message sent by the MongoDB database in response to an OpQuery.
Record represents a single recorded wire protocol message, loaded from a .bin file.
ValidationError is used for reporting validation errors.

# Interfaces

MsgBody is a wire protocol message body.

# Type aliases

OpCode represents wire operation code.
OpMsgFlagBit integer is a bitmask encoding flags that modify the format and behavior of OpMsg.
OpMsgFlags type unint32.
OpQueryFlagBit an integer bitmask for the operation.
OpQueryFlags enables String() and FlagSet methods for flags.
OpReplyFlagBit is a bit vector to specify OP_REPLY flags.
OpReplyFlags are OP_REPLY flags.