Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/willow/mod.deno.ts>Store#ingestEntry

Exploring Willow in the most efficient and sound programming language
Go to Latest
method Store.prototype.ingestEntry
Re-export
import { Store } from "https://deno.land/x/willow@0.2.1/mod.deno.ts";

Attempt to store an authorised entry in the Store.

An entry will not be ingested if it is unauthorised; if a newer entry with the same path and subspace are present; or if a newer entry with a path that is a prefix of the given entry exists. See the Willow Data Model's Concepts for more information.

Additionally, if the entry's path is a prefix of already-held older entries, those entries will be removed from the Store. See prefix pruning for more information.

Parameters

entry: Entry<NamespaceId, SubspaceId, PayloadDigest>
authorisation: AuthorisationToken
optional
externalSourceId: string

Returns

Promise<IngestEvent<NamespaceId, SubspaceId, PayloadDigest, AuthorisationToken>>