Files
firegex-traffic-viewer/frontend/src/js/models.ts

45 lines
813 B
TypeScript
Raw Normal View History

2022-06-11 21:57:50 +02:00
2022-06-12 16:44:54 +02:00
export const update_freq = 3000;
2022-06-12 12:09:50 +02:00
export const notification_time = 2000;
2022-06-11 21:57:50 +02:00
export type GeneralStats = {
services:number,
closed:number,
2022-06-12 19:03:56 +02:00
regexes:number
2022-06-11 21:57:50 +02:00
}
export type Service = {
id:string,
name:string,
status:string,
public_port:number,
internal_port:number,
n_packets:number,
n_regex:number,
}
2022-06-12 12:09:50 +02:00
export type ServiceAddForm = {
name:string,
port:number
}
export type ServerResponse = {
status:string
}
export type RegexFilter = {
id:number,
service_id:string,
regex:string
is_blacklist:boolean,
2022-06-12 14:40:48 +02:00
mode:string //C S B => C->S S->C BOTH
n_packets:number
2022-06-12 16:44:54 +02:00
}
export type RegexAddForm = {
"service_id":string,
"regex":string,
"is_blacklist":boolean,
"mode":string // C->S S->C BOTH
2022-06-12 12:09:50 +02:00
}