Skip to main content
Module

x/earthstar/deps.ts>RangeMessengerConfig

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
type alias RangeMessengerConfig
Re-export
import { type RangeMessengerConfig } from "https://deno.land/x/earthstar@v10.0.0/deps.ts";

Type Parameters

EncodedType
ValueType
LiftType
definition: { encode: { emptySet: (canRespond: boolean) => EncodedType; lowerBound: (value: ValueType) => EncodedType; payload: (value: ValueType, end?: { canRespond: boolean; upperBound: ValueType; }) => EncodedType; emptyPayload: (upperBound: ValueType) => EncodedType; done: (upperBound: ValueType) => EncodedType; fingerprint: (fingerprint: LiftType, upperBound: ValueType) => EncodedType; terminal: () => EncodedType; }; decode: { emptySet: (message: EncodedType) => boolean; lowerBound: (message: EncodedType) => ValueType; payload: (message: EncodedType) => { value: ValueType; end?: { canRespond: boolean; upperBound: ValueType; }; }; emptyPayload: (message: EncodedType) => ValueType; done: (message: EncodedType) => ValueType; fingerprint: (message: EncodedType) => { fingerprint: LiftType; upperBound: ValueType; }; terminal: (e: EncodedType) => true; }; }