Skip to main content
Module

x/earthstar/src/entries/deno.ts>ExtensionServerSettings

Storage for private, distributed, offline-first applications.
Go to Latest
class ExtensionServerSettings
implements IServerExtension
import { ExtensionServerSettings } from "https://deno.land/x/earthstar@v10.0.2/src/entries/deno.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

Methods

handler(_req: Request): Promise<Response | null>
register(peer: Peer): Promise<void>