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

x/earthstar/src/entries/npm.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.2.0/src/entries/npm.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)