UNPKG

@xmobitea/gn-server

Version:

GearN Server by XmobiTea (Pro)

39 lines (38 loc) 2.38 kB
import { ApplicationSettings } from "./settings/ApplicationSettings"; import { HttpAppSettings } from "./settings/HttpAppSettings"; import { SocketAppSettings } from "./settings/SocketAppSettings"; import { ServerApplication } from "./ServerApplication"; import { GNServer } from "./../GNServer"; import { OtherSettings } from "./settings/OtherSettings"; import { DatabaseSettings } from "./settings/DatabaseSettings"; import { OnRunSuccess } from "./../GN-library/xbuilder/lib/OnRunSuccess"; import { LogSettings } from "./settings/LogSettings"; import { UploadFileSettings } from "./settings/UploadFileSettings"; import { DdosSettings } from "./settings/DDosSettings"; import { ClusterSettings } from "./settings/ClusterSettings"; export declare class DefaultApplicationStartup { protected serverApplication: ServerApplication; /** * Runs the current workflow. * @param onRunSuccess Provides the callback executed after a successful startup. */ run(onRunSuccess?: OnRunSuccess): void; /** * Executes the new server application workflow. * @param applicationSettings Provides the application settings value used by this operation. * @param httpAppSettings Provides the HTTP app settings value used by this operation. * @param socketAppSettings Provides the socket app settings value used by this operation. * @param otherSettings Provides the other settings value used by this operation. * @param databaseSettings Provides the database settings value used by this operation. * @param logSettings Provides the log settings value used by this operation. * @param uploadFileSettings Provides the upload file settings value used by this operation. * @param ddosSettings Provides the DDoS settings value used by this operation. * @param clusterSettings Provides the cluster settings value used by this operation. */ protected newServerApplication(applicationSettings: ApplicationSettings, httpAppSettings: HttpAppSettings, socketAppSettings: SocketAppSettings, otherSettings: OtherSettings, databaseSettings: DatabaseSettings, logSettings: LogSettings, uploadFileSettings: UploadFileSettings, ddosSettings: DdosSettings, clusterSettings: ClusterSettings): ServerApplication; /** * Returns the GearN server. * @returns Returns the GearN server. */ getGNServer(): GNServer; }