package
18.0.0-dev.vnet-windows.4+incompatible
Repository: https://github.com/gravitational/teleport.git
Documentation: pkg.go.dev
# Functions
IsHandshake returns true if the message is a handshake request.
MakeOpMsg is a shorthand to create OP_MSG message from a single document.
MakeOpReply is a shorthand to create OP_REPLY message from a single document.
MakeOpReplyWithFlags is a shorthand to create OP_REPLY message from a single document with provided flags.
ReadDocument is a replacement for ReadQueryQuery or ReadQueryReturnFieldsSelector.
ReadMessage reads the next MongoDB wire protocol message from the reader.
ReadQueryFlags reads OP_QUERY flags from src.
ReadQueryFullCollectionName reads the full collection name from src.
ReadQueryNumber is a replacement for ReadQueryNumberToSkip or ReadQueryNumberToSkip.
ReadReplyDocuments reads multiple documents from the source.
ReadServerMessage reads wire protocol message from the MongoDB server connection.
ReplyError sends error wire message to the client.
# Constants
DefaultMaxMessageSizeBytes is the default max size of mongoDB message.
HelloCommand is the handshake command name.
IsMasterCommand is legacy handshake command name.
These OpCode's define what Teleport supports.
These OpCode's define what Teleport supports.
These OpCode's define what Teleport supports.
These OpCode's define what Teleport supports.
These OpCode's define what Teleport supports.
These OpCode's define what Teleport supports.
These OpCode's define what Teleport supports.
These OpCode's define what Teleport supports.
OpmsgWireVersion is the minimum wire version needed to use OP_MSG.
These OpCode's define what Teleport supports.
These OpCode's define what Teleport supports.
These OpCode's define what Teleport supports.
# Structs
MessageHeader represents parsed MongoDB wire protocol message header.
MessageOpCompressed represents parsed OP_COMPRESSED wire message.
MessageOpDelete represents parsed OP_DELETE wire message.
MessageOpGetMore represents parsed OP_GET_MORE wire message.
MessageOpInsert represents parsed OP_INSERT wire message.
MessageOpKillCursors represents parsed OP_KILL_CURSORS wire message.
MessageOpMsg represents parsed OP_MSG wire message.
MessageOpQuery represents parsed OP_QUERY wire message.
MessageOpReply represents parsed OP_REPLY wire message.
MessageOpUpdate represents parsed OP_UPDATE wire message.
SectionBody represents OP_MSG Body section that contains a single bson document.
SectionDocumentSequence represents OP_MSG Document Sequence section that contains multiple bson documents.