mirror of
https://github.com/AIR-EISTI/hades.git
synced 2025-01-10 11:31:30 +01:00
27 lines
447 B
TypeScript
27 lines
447 B
TypeScript
export class ServerInfo {
|
|
name: string;
|
|
nickname: string;
|
|
status: string;
|
|
command: string;
|
|
args: Array<string>;
|
|
stdout: Array<string>;
|
|
exitCode: number;
|
|
pid: number;
|
|
statsHist: Stat[];
|
|
}
|
|
|
|
export class ServerList {
|
|
[name: string]: ServerInfo
|
|
}
|
|
|
|
export class ServerForm {
|
|
nickname: string;
|
|
game: string;
|
|
vars: {[name: string]: string};
|
|
}
|
|
|
|
export class Stat {
|
|
cpu: number;
|
|
memory: number;
|
|
totalMemory: number;
|
|
}
|