webserver-framework/@types/Controller.ts

31 lines
808 B
TypeScript
Raw Permalink Normal View History

2023-04-17 13:10:45 +02:00
import { LoggerMasterOptions, LoggerClientOptions } from '@navy.gif/logger';
import { ServerOptions } from './Server.js';
import { DatabaseOptions, DiscordOptions } from './Other.js';
2023-05-08 19:47:10 +02:00
import { BrokerOptions } from '@navy.gif/wrappers';
2023-04-17 13:10:45 +02:00
type Env = {
[key: string]: string
}
export type ShardOptions = {
path: string,
args?: string[],
execArgv?: string[],
env?: Env,
respawn?: boolean,
serverOptions?: ServerOptions
}
export type ControllerOptions = {
projectName: string
logger?: LoggerMasterOptions & LoggerClientOptions,
serverFilePath: string,
shardCount?: number,
shardOptions: ShardOptions,
serverOptions: ServerOptions,
discord: DiscordOptions,
databases: DatabaseOptions,
env: Env,
2023-05-08 19:47:10 +02:00
srcDir: string,
rabbitConfig: BrokerOptions
2023-04-17 13:10:45 +02:00
}