Skip to main content
Module

x/earthstar/deps.ts>RangeMessengerConfig

Storage for private, distributed, offline-first applications.
Go to Latest
type alias RangeMessengerConfig
Re-export
import { type RangeMessengerConfig } from "https://deno.land/x/earthstar@v10.0.2/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: { getType: (message: EncodedType) =>
| "emptySet"
| "lowerBound"
| "payload"
| "emptyPayload"
| "done"
| "fingerprint"
| "terminal"
; 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; }; }