1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-19 06:14:04 +00:00

Display host stats

This commit is contained in:
2023-06-07 21:52:43 +02:00
parent be7643bd31
commit be4e3e778e
11 changed files with 219 additions and 12 deletions

2
frontend/wailsjs/go/app/App.d.ts generated vendored
View File

@ -33,7 +33,7 @@ export function Menu():Promise<menu.Menu>;
export function OpenCollection(arg1:string,arg2:string,arg3:string):Promise<primitive.M>;
export function OpenConnection(arg1:string):Promise<Array<string>>;
export function OpenConnection(arg1:string):Promise<app.HostInfo>;
export function OpenDatabase(arg1:string,arg2:string):Promise<app.DatabaseInfo>;

View File

@ -44,6 +44,22 @@ export namespace app {
this.downloadDirectory = source["downloadDirectory"];
}
}
export class HostInfo {
databases: string[];
status: {[key: string]: any};
systemInfo: {[key: string]: any};
static createFrom(source: any = {}) {
return new HostInfo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.databases = source["databases"];
this.status = source["status"];
this.systemInfo = source["systemInfo"];
}
}
export class QueryResult {
total: number;
results: string[];