Interface SingleKadDHT

interface SingleKadDHT {
    routingTable: RoutingTable;
    cancelReprovide(key): Promise<void>;
    findPeer(id, options?): AsyncIterable<QueryEvent>;
    findProviders(key, options?): AsyncIterable<QueryEvent>;
    get(key, options?): AsyncIterable<QueryEvent>;
    getClosestPeers(key, options?): AsyncIterable<QueryEvent>;
    getMode(): "client" | "server";
    provide(key, options?): AsyncIterable<QueryEvent>;
    put(key, value, options?): AsyncIterable<QueryEvent>;
    refreshRoutingTable(): Promise<void>;
    setMode(mode): Promise<void>;
}

Hierarchy (view full)

Properties

routingTable: RoutingTable

Methods