PyRepoClient constructor options.

interface Options {
    checkInterval?: number;
    combineRange?: boolean;
    commandLengthLimit?: number;
    commandTimeout?: number;
    cpOpts?: ConsumerOptions & ProducerOptions;
    endpoint?: Endpoint;
    notifyInterestLifetime?: number;
    pubAnnouncement?: false | Name;
    pubFwHint?: Name;
    pubPrefix?: Name;
    pubSigner?: Signer;
    repoPrefix: Name;
}

Hierarchy (view full)

Properties

checkInterval?: number

How often to check command progress in milliseconds.

Default Value

1 second
combineRange?: boolean

If true, attempt to combine consecutive parameters into RangeParam.

Default Value

false
commandLengthLimit?: number

Maximum TLV-LENGTH of each RepoCommandParam.

Default Value

6144
commandTimeout?: number

Maximum duration of each command in milliseconds.

Default Value

60 seconds

Consumer and producer options.

Remarks

  • .fw may be specified.
  • Most other fields are overridden.
endpoint?: Endpoint

Endpoint for communication.

Deprecated

Specify .cpOpts.

notifyInterestLifetime?: number

InterestLifetime of notify Interests.

pubAnnouncement?: false | Name

Prefix announcement to receive msg Interests.

Default Value

.pubFwHint ?? .pubPrefix

pubFwHint?: Name

Forwarding hint of the local application.

pubPrefix?: Name

Name prefix of the local application.

Default Value

"/localhost" + random-suffix
pubSigner?: Signer

Key to sign publications.

Default Value

digestSigning

Remarks

This key should be trusted to sign objects under pubPrefix. This may overridden on a per-publication basis by PublicationCallback returning Data.

repoPrefix: Name

Name prefix of the repo instance.

Remarks

This corresponds to ndn-python-repo.conf .repo_config.repo_name key.