Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @ndn/repo

Index

Type aliases

PrefixRegController

PrefixRegController: (store: DataStore, face: Face) => PrefixRegContext

Type declaration

    • (store: DataStore, face: Face): PrefixRegContext
    • Control prefix registrations of a repo producer.

      Parameters

      Returns PrefixRegContext

Functions

PrefixRegDynamic

  • Register prefixes derived from Data names.

    Parameters

    • transform: (name: Name) => Name

      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.

        • (name: Name): Name
        • Parameters

          • name: Name

          Returns Name

    Returns PrefixRegController

PrefixRegShorter

PrefixRegStatic

PrefixRegStrip

respondRdr

  • Provide a Producer.FallbackHandler that responds RDR metadata describing latest version among stored Data. This should be passed to Producer.create() options.

    Parameters

    • opts: Options = {}

    Returns FallbackHandler

Generated using TypeDoc