Skip to main content
Dotset CLI API Documentation / tollgate / getServerConfig

Function: getServerConfig()

function getServerConfig(config, serverName): ServerConfig | undefined;
Defined in: src/tollgate/policy/parser.ts:190 Retrieves the configuration for a specific server.

Parameters

config

Root Tollgate configuration

serverName

string Name of the server to retrieve

Returns

ServerConfig | undefined Server configuration or undefined if not found