Options
All
  • Public
  • Public/Protected
  • All
Menu

m-ld clone configuration, used to initialise a clone for use.

Hierarchy

  • MeldConfig

Index

Properties

Optional @context

@context: Context

An optional JSON-LD context for the domain data. If not specified:

  • @base defaults to http://{domain}
  • @vocab defaults to the resolution of /# against the base

@domain

@domain: string

A URI domain name, which defines the universal identity of the dataset being manipulated by a set of clones (for example, on the configured message bus). For a clone with persistent data from a prior session, this must be the same as the previous session.

@id

@id: string

The local identity of the m-ld clone session, used for message bus identity and logging. This identity does not need to be the same across re-starts of a clone with persistent data. It must be unique among the clones for the domain. For convenience, you can use the uuid function.

Optional constraints

constraints: ConstraintConfig[]

Semantic constraints to apply to the domain data.

genesis

genesis: boolean

Set to true to indicate that this clone will be 'genesis'; that is, the first new clone on a new domain. This flag will be ignored if the clone is not new. If false, and this clone is new, successful clone initialisation is dependent on the availability of another clone. If set to true, and subsequently another non-new clone appears on the same domain, either or both clones will immediately close to preserve their data integrity.

Optional journal

journal: JournalConfig

Journaling configuration

Optional logLevel

logLevel: LogLevelDesc

Optional maxOperationSize

maxOperationSize: undefined | number

An upper bound on operation message size, in bytes. Usually imposed by the message publishing implementation. Default is infinity. Exceeding this limit will cause a transaction to fail, to prevent a clone from being unable to transmit the update to its peers.

Optional networkTimeout

networkTimeout: undefined | number

An sane upper bound on how long any to wait for a response over the network, in milliseconds. Used for message send timeouts and to trigger fallback behaviours. Default is five seconds.

Legend

  • Constructor
  • Property
  • Method
  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Protected method
  • Static method

Generated using TypeDoc. Delivered by Vercel. @m-ld/m-ld - v0.8.2 Source code licensed MIT. Privacy policy