UNPKG

syslog-portal

Version:
33 lines (32 loc) 788 B
import { MongoClientOptions } from 'mongodb'; export declare enum ServerTypeEnum { UDP = "UDP", TCP = "TCP" } export interface ISubComponentConfig { enabled: boolean; } export declare enum ArchiverType { MONGO = "MONGO", SQLLITE3 = "SQLLITE3", POUCHDB = "POUCHDB" } export interface IArchiverconfig extends ISubComponentConfig { type: ArchiverType; options?: MongoClientOptions; hostname?: string; port?: number; username?: string; password?: string; usernameFile?: string; passwordFile?: string; syncInterval?: number; databaseFolder?: string; proto?: string; partitionKeyPriorityList?: string[]; } export interface IConfig { serverType: ServerTypeEnum; serverPort: number; archiver: IArchiverconfig; }