PHP WebShell
Текущая директория: /opt/BitGoJS/modules/express/dist
Просмотр файла: expressApp.d.ts
/**
* @prettier
*/
import * as express from 'express';
import * as https from 'https';
import * as http from 'http';
import { Config } from './config';
/**
* Create a startup function which will be run upon server initialization
*
* @param config
* @param baseUri
* @return {Function}
*/
export declare function startup(config: Config, baseUri: string): () => void;
/**
* Create either a HTTP or HTTPS server
*/
export declare function createServer(config: Config, app: express.Application): Promise<https.Server | http.Server>;
/**
* Create the base URI where the BitGoExpress server will be available once started
* @return {string}
*/
export declare function createBaseUri(config: Config): string;
export declare function setupRoutes(app: express.Application, config: Config): void;
export declare function app(cfg: Config): express.Application;
/**
* Prepare to listen on an IPC (unix domain) socket instead of a normal TCP port.
* @param ipcSocketFilePath path to file where IPC socket should be created
*/
export declare function prepareIpc(ipcSocketFilePath: string): Promise<void>;
export declare function init(): Promise<void>;
//# sourceMappingURL=expressApp.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!