2025-07-03 21:34:58 +00:00
|
|
|
import type { IEndpoint } from "$lib/server/classes/endpoints/endpoints-interfaces";
|
2025-07-02 18:22:41 +00:00
|
|
|
import { EndpointType } from "$lib/server/enums/endpoints";
|
|
|
|
|
import type { FileStats } from "$lib/server/utils/filesystem-utils";
|
|
|
|
|
|
|
|
|
|
export interface IEndpointFS {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Specifies which Enpoint this is
|
|
|
|
|
*/
|
|
|
|
|
type: EndpointType
|
|
|
|
|
/** File name */
|
|
|
|
|
name: string
|
|
|
|
|
/**
|
|
|
|
|
* File stats,
|
|
|
|
|
* useful to understand
|
|
|
|
|
* whether the file has been actually
|
|
|
|
|
* parsed by nginx during last reload
|
|
|
|
|
*/
|
|
|
|
|
stats: FileStats
|
|
|
|
|
/** File path */
|
|
|
|
|
path: string
|
|
|
|
|
/** Hash of the file */
|
|
|
|
|
hash: string
|
|
|
|
|
|
|
|
|
|
/** converts the IEndpoint to */
|
|
|
|
|
toConf(): string
|
|
|
|
|
|
|
|
|
|
ports(): number[]
|
|
|
|
|
|
2025-07-03 18:25:50 +00:00
|
|
|
headerHash(): string
|
|
|
|
|
|
2025-07-03 21:34:58 +00:00
|
|
|
toIEndpoint(): IEndpoint
|
|
|
|
|
|
2025-07-02 18:22:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FSHeader = {
|
|
|
|
|
name: string,
|
|
|
|
|
stats: FileStats
|
|
|
|
|
path: string,
|
|
|
|
|
hash: string
|
|
|
|
|
}
|
|
|
|
|
|