# Functions
AppendByte appends the byte to the buffer.
AppendCString appends the string value to the buffer.
AppendDocument appends the document to the buffer.
AppendHeader appends a header to dst.
AppendInt32 appends the int32 value to the buffer.
AppendInt64 appends the int64 value to the buffer.
NewDeleteWithHeaderAndBody returns a new update instance with the specified bytes.
NewGetMoreWithHeaderAndBody returns a new get more instance with the specified bytes.
NewHeader returns a new header instance.
NewHeaderWithBytes returns a new header instance of the specified bytes.
NewHeaderWithOpCode returns a new header instance with the specified opcode.
NewInsertWithHeaderAndBody returns a new insert instance with the specified bytes.
NewKillCursorsWithHeaderAndBody returns a new get more instance with the specified bytes.
NewMessageWithBytes returns a parsed message of the specified bytes.
NewMessageWithHeaderAndBytes returns a parsed message of the specified header and body bytes.
NewMsg returns a new msg instance.
NewMsgWithBody returns a new msg instance with the specified body document.
NewMsgWithHeaderAndBody returns a new update instance with the specified bytes.
NewQueryWithHeaderAndBody returns a new insert instance with the specified bytes.
NewReply returns a new reply instance.
NewReplyWithDocument returns a new reply instance with ths specified document.
NewReplyWithDocuments returns a new reply instance with ths specified documents.
NewReplyWithHeaderAndBody returns a new reply instance with the specified bytes.
NewUpdateWithHeaderAndBody returns a new update instance with the specified bytes.
ReadCString reads the cstring from src.
ReadCursorIDs reads numIDs cursor IDs from src.
ReadDocument reads a single document from src.
ReadDocuments reads as many documents as possible from src.
ReadDocumentSequence reads an identifier and document sequence from src.
ReadHeader reads a wire message header from src.
ReadInt32 reads a int32 value from src.
ReadInt64 reads a int64 value from src.
ReadSectionType reads the section type from src.
ReadUint32 reads an uint32 value from src.
# Constants
AwaitCapable sets when the server supports the AwaitData Query option.
CursorNotFound sets when getMore is called but the cursor id is not valid at the server.
HeaderSize is the static header size of MongoDB wire protocol.
OpCommand (OP_COMMAND:2011) clusters internal protocol representing a command request.
OpCommandReply (OP_COMMANDREPLY:2011) clusters internal protocol representing a reply to an OP_COMMAND.
OpDelete (OP_DELETE:2006) Deletes documents.
OpGetMore (GET_MORE:2005) gets more data from a query.
OpInsert (OP_INSERT:2002) inserts new document.
OpKillCursors (OP_KILL_CURSORS:2007)Notifies database that the client has finished with the cursor.
OpMsg (OP_MSG:2013) sends a message using the format introduced in MongoDB 3.6.
OpQuery (OP_QUERY:2004) queries a collection.
OpReply (OP_REPLY) replies to a client request.
OpUpdate (OP_UPDATE:2001) updates document.
QueryFailure sets when query failed.
ShardConfigStale needs to update config from the server, and so drivers should ignore this.
# Structs
Delete represents a OP_DELETE of MongoDB wire protocol.
GetMore represents a OP_GET_MORE of MongoDB wire protocol.
Header represents a standard header of MongoDB wire protocol.
Insert represents a OP_INSERT of MongoDB wire protocol.
KillCursors represents a OP_KILL_CURSORS of MongoDB wire protocol.
Msg represents a OP_MSG of MongoDB wire protocol.
Query represents a OP_QUERY of MongoDB wire protocol.
Reply represents a OP_REPLY of MongoDB wire protocol.
Update represents a OP_UPDATE of MongoDB wire protocol.
# Interfaces
Message represents an operation message of MongoDB wire protocol.
MessageListener represents a listener for MongoDB Wire Protocol.
Request represents a request operation of MongoDB wire protocol.
Response represents a response operation of MongoDB wire protocol.
# Type aliases
Flag represents a message flag of MongoDB wire protocol.
MsgFlag represents a MsgFlag of MongoDB wire protocol.
OpCode represents a MongoDB wire protocol opcode.
ReplyFlag represents a MsgFReplyFlaglag of MongoDB wire protocol.
Section represents a section of MongoDB wire protocol.
SectionType represents a SectionType of MongoDB wire protocol.