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

54 lines
945 B
TypeScript
Raw Normal View History

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
}
2022-06-13 16:12:52 +02:00
export type ServerStatusResponse = {
status:string,
loggined:boolean
}
export type PasswordSend = {
password:string
}
export type ChangePassword = {
password:string,
expire:boolean
}
2022-06-12 12:09:50 +02:00
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 = {
2022-06-13 10:59:05 +02:00
service_id:string,
regex:string,
is_blacklist:boolean,
mode:string // C->S S->C BOTH
2022-06-12 12:09:50 +02:00
}