Skip to main content
Module

x/earthstar/src/entries/universal.ts>ReplicaEvent

Storage for private, distributed, offline-first applications.
Latest
type alias ReplicaEvent
Re-export
import { type ReplicaEvent } from "https://deno.land/x/earthstar@v10.2.2/src/entries/universal.ts";
  • DocAlreadyExists — processing an old doc as you catch up
  • IngestEvent — the result of a replica ingesting a document
  • ExpireEvent - An ephemeral document has expired
  • AttachmentIngestEvent - A new attachment has been ingested
  • AttachmentPruneEvent - An attachment without a corresponding document has been pruned.
  • ReplicaEventWillClose — the replica is about to close
  • ReplicaEventDidClose — the replica has closed

Type Parameters

DocType extends DocBase<string>
definition:
| IngestEvent<DocType>
| ExpireEvent<DocType>
| AttachmentIngestEvent<DocType>
| AttachmentPruneEvent
| ReplicaEventWillClose
| ReplicaEventDidClose