1 | import { CanActivate, ExceptionFilter, INestMicroservice, NestInterceptor, PipeTransform, WebSocketAdapter } from '@nestjs/common';
|
2 | import { NestMicroserviceOptions } from '@nestjs/common/interfaces/microservices/nest-microservice-options.interface';
|
3 | import { Logger } from '@nestjs/common/services/logger.service';
|
4 | import { ApplicationConfig } from '@nestjs/core/application-config';
|
5 | import { NestContainer } from '@nestjs/core/injector/container';
|
6 | import { GraphInspector } from '@nestjs/core/inspector/graph-inspector';
|
7 | import { NestApplicationContext } from '@nestjs/core/nest-application-context';
|
8 | import { MicroserviceOptions } from './interfaces/microservice-configuration.interface';
|
9 | export declare class NestMicroservice extends NestApplicationContext<NestMicroserviceOptions> implements INestMicroservice {
|
10 | private readonly graphInspector;
|
11 | private readonly applicationConfig;
|
12 | protected readonly logger: Logger;
|
13 | private readonly microservicesModule;
|
14 | private readonly socketModule;
|
15 | private microserviceConfig;
|
16 | private server;
|
17 | private isTerminated;
|
18 | private isInitHookCalled;
|
19 | constructor(container: NestContainer, config: NestMicroserviceOptions & MicroserviceOptions, graphInspector: GraphInspector, applicationConfig: ApplicationConfig);
|
20 | createServer(config: NestMicroserviceOptions & MicroserviceOptions): void;
|
21 | registerModules(): Promise<any>;
|
22 | registerListeners(): void;
|
23 | useWebSocketAdapter(adapter: WebSocketAdapter): this;
|
24 | useGlobalFilters(...filters: ExceptionFilter[]): this;
|
25 | useGlobalPipes(...pipes: PipeTransform<any>[]): this;
|
26 | useGlobalInterceptors(...interceptors: NestInterceptor[]): this;
|
27 | useGlobalGuards(...guards: CanActivate[]): this;
|
28 | init(): Promise<this>;
|
29 | listen(): Promise<any>;
|
30 | close(): Promise<any>;
|
31 | setIsInitialized(isInitialized: boolean): void;
|
32 | setIsTerminated(isTerminated: boolean): void;
|
33 | setIsInitHookCalled(isInitHookCalled: boolean): void;
|
34 | protected closeApplication(): Promise<any>;
|
35 | protected dispose(): Promise<void>;
|
36 | }
|