Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Storage for private, distributed, offline-first applications.
Go to Latest
type alias ReplicaEvent
Re-export
import { type ReplicaEvent } from "https://deno.land/x/earthstar@v10.2.0/src/entries/npm.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