Skip to main content
Module

x/earthstar_replica_server/deps.ts>Earthstar.DocEs4

An always-online Earthstar peer for your shares.
Latest
interface Earthstar.DocEs4
implements DocBase<"es.4">
import { type Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { DocEs4 } = Earthstar;

Contains data written and signed by an identity.

Properties

format: "es.4"

Which document format the doc adheres to, e.g. es.4.

content: string
contentHash: string
deleteAfter: number | null

When the document should be deleted, as a UNIX timestamp in microseconds.

path: Path
signature: Signature

Used to verify the authorship of the document.

timestamp: Timestamp

When the document was written, as a UNIX timestamp in microseconds (millionths of a second, e.g. Date.now() * 1000).

workspace: ShareAddress

The share this document is from. Shares were previously called workspaces, but we didn't want to break compatibility with previous versions by renaming this field.

optional
_localIndex: LocalIndex