@interncom/diplomatic 0.12.1 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,6 +4,10 @@ import type { HostStatsUpdate, IHostRow, IHostStore } from "../../types";
|
|
|
4
4
|
export declare class IDBHostStore implements IHostStore<URL> {
|
|
5
5
|
db: IDBDatabase;
|
|
6
6
|
constructor(db: IDBDatabase);
|
|
7
|
+
/**
|
|
8
|
+
* Upsert connection info. Same label + same handle/idx keeps lastSeq and
|
|
9
|
+
* host meta (safe re-link). Changing handle/idx resets the peek cursor.
|
|
10
|
+
*/
|
|
7
11
|
add(info: IHostConnectionInfo<URL>): Promise<void>;
|
|
8
12
|
private put;
|
|
9
13
|
touch(label: string, seq: number): Promise<void>;
|
|
@@ -3,6 +3,10 @@ import { HostHandle, IHostConnectionInfo, IHostMetadata } from "../../shared/typ
|
|
|
3
3
|
import type { HostStatsUpdate, IHostRow, IHostStore } from "../../types";
|
|
4
4
|
export declare class MemoryHostStore<Handle extends HostHandle> implements IHostStore<Handle> {
|
|
5
5
|
hosts: Map<string, IHostRow<Handle>>;
|
|
6
|
+
/**
|
|
7
|
+
* Upsert connection info. Same label + same handle/idx keeps lastSeq and
|
|
8
|
+
* host meta (safe re-link). Changing handle/idx resets the peek cursor.
|
|
9
|
+
*/
|
|
6
10
|
add(info: IHostConnectionInfo<Handle>): Promise<void>;
|
|
7
11
|
touch(label: string, seq: number): Promise<void>;
|
|
8
12
|
recordStats(label: string, u: HostStatsUpdate): Promise<void>;
|