新增实例槽位隔离与结构化日志,多开不再共用日志与账号
This commit is contained in:
Vendored
+8
-1
@@ -1,14 +1,19 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {gui} from '../models';
|
||||
import {logger} from '../models';
|
||||
|
||||
export function DefaultConfig():Promise<gui.Config>;
|
||||
|
||||
export function Exchange(arg1:gui.Config):Promise<Array<gui.ExchangeResult>>;
|
||||
|
||||
export function GetInstanceInfo():Promise<gui.InstanceInfo>;
|
||||
|
||||
export function GetLogFilePath():Promise<string>;
|
||||
|
||||
export function GetLogs():Promise<Array<gui.LogEntry>>;
|
||||
export function GetLogStats():Promise<gui.LogStats>;
|
||||
|
||||
export function GetLogs(arg1:number):Promise<Array<logger.Entry>>;
|
||||
|
||||
export function GetRecords(arg1:gui.Config):Promise<Array<gui.RecordResult>>;
|
||||
|
||||
@@ -22,6 +27,8 @@ export function PreviewAccounts(arg1:string):Promise<Array<gui.AccountPreview>>;
|
||||
|
||||
export function QueryScores(arg1:gui.Config):Promise<Array<gui.ScoreResult>>;
|
||||
|
||||
export function SetLogLevel(arg1:string):Promise<string>;
|
||||
|
||||
export function StartMonitor(arg1:gui.Config):Promise<void>;
|
||||
|
||||
export function StopMonitor():Promise<boolean>;
|
||||
|
||||
@@ -10,12 +10,20 @@ export function Exchange(arg1) {
|
||||
return window['go']['gui']['App']['Exchange'](arg1);
|
||||
}
|
||||
|
||||
export function GetInstanceInfo() {
|
||||
return window['go']['gui']['App']['GetInstanceInfo']();
|
||||
}
|
||||
|
||||
export function GetLogFilePath() {
|
||||
return window['go']['gui']['App']['GetLogFilePath']();
|
||||
}
|
||||
|
||||
export function GetLogs() {
|
||||
return window['go']['gui']['App']['GetLogs']();
|
||||
export function GetLogStats() {
|
||||
return window['go']['gui']['App']['GetLogStats']();
|
||||
}
|
||||
|
||||
export function GetLogs(arg1) {
|
||||
return window['go']['gui']['App']['GetLogs'](arg1);
|
||||
}
|
||||
|
||||
export function GetRecords(arg1) {
|
||||
@@ -42,6 +50,10 @@ export function QueryScores(arg1) {
|
||||
return window['go']['gui']['App']['QueryScores'](arg1);
|
||||
}
|
||||
|
||||
export function SetLogLevel(arg1) {
|
||||
return window['go']['gui']['App']['SetLogLevel'](arg1);
|
||||
}
|
||||
|
||||
export function StartMonitor(arg1) {
|
||||
return window['go']['gui']['App']['StartMonitor'](arg1);
|
||||
}
|
||||
|
||||
@@ -116,20 +116,44 @@ export namespace gui {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
export class LogEntry {
|
||||
time: string;
|
||||
level: string;
|
||||
message: string;
|
||||
export class InstanceInfo {
|
||||
name: string;
|
||||
id: string;
|
||||
dataDir: string;
|
||||
logDir: string;
|
||||
logFile: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new LogEntry(source);
|
||||
return new InstanceInfo(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.name = source["name"];
|
||||
this.id = source["id"];
|
||||
this.dataDir = source["dataDir"];
|
||||
this.logDir = source["logDir"];
|
||||
this.logFile = source["logFile"];
|
||||
}
|
||||
}
|
||||
export class LogStats {
|
||||
level: string;
|
||||
filePath: string;
|
||||
dir: string;
|
||||
dropped: number;
|
||||
count: number;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new LogStats(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.time = source["time"];
|
||||
this.level = source["level"];
|
||||
this.message = source["message"];
|
||||
this.filePath = source["filePath"];
|
||||
this.dir = source["dir"];
|
||||
this.dropped = source["dropped"];
|
||||
this.count = source["count"];
|
||||
}
|
||||
}
|
||||
export class PrizeListResult {
|
||||
@@ -530,3 +554,30 @@ export namespace huya {
|
||||
|
||||
}
|
||||
|
||||
export namespace logger {
|
||||
|
||||
export class Entry {
|
||||
id: number;
|
||||
time: string;
|
||||
level: string;
|
||||
category: string;
|
||||
account: string;
|
||||
message: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new Entry(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.id = source["id"];
|
||||
this.time = source["time"];
|
||||
this.level = source["level"];
|
||||
this.category = source["category"];
|
||||
this.account = source["account"];
|
||||
this.message = source["message"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user