Skip to main content
Module

x/earthstar/mod.ts>ExtensionServerSettings

Storage for private, distributed, offline-first applications.
Latest
class ExtensionServerSettings
implements IServerExtension
import { ExtensionServerSettings } from "https://deno.land/x/earthstar@v10.2.2/mod.ts";

A server extension which reads settings from a specified share, e.g. which shares to host on the server. Settings are modified by other peers syncing with this server.

Constructors

new
ExtensionServerSettings(opts: ExtensionServerSettingsOpts)

Properties

private
configReplica: Replica
private
onCreateReplica: (configurationShareAddress: string) => Replica
private
peer: Peer | null

Methods

findReplicaForHash(hash: string): Promise<Replica | undefined>
handler(_req: Request): Promise<Response | null>
register(peer: Peer): Promise<void>
removeShareWithHash(hash: string)