init
This commit is contained in:
39
frontend/wailsjs/go/models.ts
Normal file
39
frontend/wailsjs/go/models.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
export namespace model {
|
||||
|
||||
export class CaptureStatus {
|
||||
is_capturing: boolean;
|
||||
status: string;
|
||||
error?: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new CaptureStatus(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.is_capturing = source["is_capturing"];
|
||||
this.status = source["status"];
|
||||
this.error = source["error"];
|
||||
}
|
||||
}
|
||||
export class NetworkInterface {
|
||||
name: string;
|
||||
description: string;
|
||||
addresses: string[];
|
||||
is_loopback: boolean;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new NetworkInterface(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.name = source["name"];
|
||||
this.description = source["description"];
|
||||
this.addresses = source["addresses"];
|
||||
this.is_loopback = source["is_loopback"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
19
frontend/wailsjs/go/service/App.d.ts
vendored
Normal file
19
frontend/wailsjs/go/service/App.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {model} from '../models';
|
||||
|
||||
export function ExportData(arg1:Array<string>,arg2:string):Promise<void>;
|
||||
|
||||
export function GetCaptureStatus():Promise<model.CaptureStatus>;
|
||||
|
||||
export function GetCapturedData():Promise<Array<string>>;
|
||||
|
||||
export function GetNetworkInterfaces():Promise<Array<model.NetworkInterface>>;
|
||||
|
||||
export function ParseData(arg1:Array<string>):Promise<string>;
|
||||
|
||||
export function ReadRawJsonFile():Promise<string>;
|
||||
|
||||
export function StartCapture(arg1:string):Promise<void>;
|
||||
|
||||
export function StopCapture():Promise<void>;
|
||||
35
frontend/wailsjs/go/service/App.js
Normal file
35
frontend/wailsjs/go/service/App.js
Normal file
@@ -0,0 +1,35 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export function ExportData(arg1, arg2) {
|
||||
return window['go']['service']['App']['ExportData'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function GetCaptureStatus() {
|
||||
return window['go']['service']['App']['GetCaptureStatus']();
|
||||
}
|
||||
|
||||
export function GetCapturedData() {
|
||||
return window['go']['service']['App']['GetCapturedData']();
|
||||
}
|
||||
|
||||
export function GetNetworkInterfaces() {
|
||||
return window['go']['service']['App']['GetNetworkInterfaces']();
|
||||
}
|
||||
|
||||
export function ParseData(arg1) {
|
||||
return window['go']['service']['App']['ParseData'](arg1);
|
||||
}
|
||||
|
||||
export function ReadRawJsonFile() {
|
||||
return window['go']['service']['App']['ReadRawJsonFile']();
|
||||
}
|
||||
|
||||
export function StartCapture(arg1) {
|
||||
return window['go']['service']['App']['StartCapture'](arg1);
|
||||
}
|
||||
|
||||
export function StopCapture() {
|
||||
return window['go']['service']['App']['StopCapture']();
|
||||
}
|
||||
Reference in New Issue
Block a user