refactor: DHTCache no longer used
This commit is contained in:
parent
0030db4237
commit
21341f6af4
|
@ -1,6 +1,5 @@
|
||||||
import type EventEmitter from "events";
|
import type EventEmitter from "events";
|
||||||
import type NodeCache from "node-cache";
|
import type NodeCache from "node-cache";
|
||||||
import type DHTCache from "@lumeweb/dht-cache";
|
|
||||||
|
|
||||||
export interface RPCRequest {
|
export interface RPCRequest {
|
||||||
module: string;
|
module: string;
|
||||||
|
@ -49,7 +48,7 @@ export declare class RPCServer extends EventEmitter {
|
||||||
registerMethod(
|
registerMethod(
|
||||||
moduleName: string,
|
moduleName: string,
|
||||||
methodName: string,
|
methodName: string,
|
||||||
options: RPCMethod
|
options: RPCMethod,
|
||||||
): void;
|
): void;
|
||||||
public getMethods(): string[];
|
public getMethods(): string[];
|
||||||
public setup(stream: any): any;
|
public setup(stream: any): any;
|
||||||
|
@ -59,7 +58,6 @@ export declare class RPCServer extends EventEmitter {
|
||||||
}
|
}
|
||||||
export declare class RPCCache extends EventEmitter {
|
export declare class RPCCache extends EventEmitter {
|
||||||
get data(): NodeCache;
|
get data(): NodeCache;
|
||||||
get dhtCache(): DHTCache;
|
|
||||||
constructor(server: RPCServer);
|
constructor(server: RPCServer);
|
||||||
public signResponse(item: RPCCacheItem): any;
|
public signResponse(item: RPCCacheItem): any;
|
||||||
public verifyResponse(pubkey: Buffer, item: RPCCacheItem): boolean | Buffer;
|
public verifyResponse(pubkey: Buffer, item: RPCCacheItem): boolean | Buffer;
|
||||||
|
|
Loading…
Reference in New Issue