Control prefix registrations of a repo producer.
Register prefixes derived from Data names.
a function that accepts Data name and returns registered prefix name; it must return the same value for the same argument.
Warning: this may misbehave when expireTime option is being used.
Register prefixes k components shorter than Data names.
Register a fixed set of prefixes.
Register prefixes after stripping last few components matching a predicate.
Warning: this may misbehave when expireTime option is being used.
Provide a Producer.FallbackHandler that responds RDR metadata describing latest version among stored Data. This should be passed to Producer.create() options.
Generated using TypeDoc
@ndn/repo
This package is part of NDNts, Named Data Networking libraries for the modern web.
This package implements a Data repository. The repo is primarily designed to be embedded into Node and web applications, rather than running as a standalone daemon process. Data ingestion is mainly supported through APIs, not command packets. Data retrieval is on par with other repo implementations.
DataStore
DataStore is a Data packet storage, based on LevelDB or other abstract-leveldown compatible key-value store. It implements most of
DataStore
interfaces defined in@ndn/repo-api
package, offering APIs to insert and delete Data packets.RepoProducer
RepoProducer makes packets in a DataStore available for retrieval.