# Functions
No description provided by the author
NewMultiplexer creates a Multiplexer and populates its Control/Completed chans it takes a WriteCloser, which is where in inputs will get multiplexed on to, and it takes a notifier, which should allow the multiplexer to ask for the shutdown of the inputs.
NewPrelude generates a Prelude using the contents of an intent.Manager.
No description provided by the author
# Constants
MagicNumber is four bytes that are found at the beginning of the archive that indicate that the byte stream is an archive, as opposed to anything else, including a stream of BSON documents.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
CollectionMetadata is a data structure that, as BSON, is found in the prelude of the archive.
Demultiplexer implements Parser.
Header is a data structure that, as BSON, is found immediately after the magic number in the archive, before any CollectionMetadatas.
MetadataFile implements intents.file.
MetadataPreludeFile is part of the intents.file.
Multiplexer is what one uses to create interleaved intents in an archive.
MutedCollection implements both DemuxOut as well as intents.file.
MuxIn is an implementation of the intents.file interface.
NamespaceHeader is a data structure that, as BSON, is found in archives where it indicates that either the subsequent stream of BSON belongs to this new namespace, or that the indicated namespace will have no more documents (EOF).
Parser encapsulates the small amount of state that the parser needs to keep.
Prelude represents the knowledge gleaned from reading the prelude out of the archive.
PreludeExplorer implements DirLike.
Prioritizer is a completely reactive prioritizer Intents are handed out as they arrive in the archive.
Reader is the top level object to contain information about archives in mongorestore.
RegularCollectionReceiver implements the intents.file interface.
SpecialCollectionCache implements both DemuxOut as well as intents.file.
Writer is the top level object to contain information about archives in mongodump.
# Interfaces
DemuxOut is a Demultiplexer output consumer The Write() and End() occur in the same thread as the Demultiplexer runs in.
DirLike represents the group of methods done on directories and files in dump directories, or in archives, when mongorestore is figuring out what intents to create.
ParserConsumer is the interface that one needs to implement to consume data from the Parser.