import type { RuntimeEnv } from "../runtime.js"; import type { NodeOnlyGatewayInfo } from "./status.node-mode.js"; import type { StatusScanOverviewResult } from "./status.scan-overview.ts";
export function logGatewayConnectionDetails(params: {
runtime: Pick<RuntimeEnv, "log">;
info: (value: string) => string;
message: string;
trailingBlankLine?: boolean;
}) {
params.runtime.log(params.info("Gateway connection:")); for (const line of params.message.split("\n")) {
params.runtime.log(` ${line}`);
} if (params.trailingBlankLine) {
params.runtime.log("");
}
}
export function resolveStatusAllConnectionDetails(params: {
nodeOnlyGateway: NodeOnlyGatewayInfo | null;
remoteUrlMissing: boolean;
gatewayConnection: StatusScanOverviewResult["gatewaySnapshot"]["gatewayConnection"];
bindMode?: string | null;
configPath: string;
}): string { if (params.nodeOnlyGateway) { return params.nodeOnlyGateway.connectionDetails;
} if (!params.remoteUrlMissing) { return params.gatewayConnection.message;
} return [ "Gateway mode: remote", "Gateway target: (missing gateway.remote.url)",
`Config: ${params.configPath}`,
`Bind: ${params.bindMode ?? "loopback"}`,
`Local fallback (used for probes): ${params.gatewayConnection.url}`, "Fix: set gateway.remote.url, or set gateway.mode=local.",
].join("\n");
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-06)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.