24 lines
641 B
TypeScript
24 lines
641 B
TypeScript
|
|
import { Module } from '@nestjs/common';
|
||
|
|
import { HealthController } from './health.controller';
|
||
|
|
import { HealthzController } from './healthz.controller';
|
||
|
|
import { HealthService } from './health.service';
|
||
|
|
import { QueueModule } from '@wwjCore/queue/queue.module';
|
||
|
|
import { EventBusModule } from '@wwjCore/event-bus/event-bus.module';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 健康检查模块
|
||
|
|
* 提供详细健康检查和 Kubernetes 探针端点
|
||
|
|
*/
|
||
|
|
@Module({
|
||
|
|
imports: [
|
||
|
|
QueueModule,
|
||
|
|
EventBusModule,
|
||
|
|
],
|
||
|
|
controllers: [
|
||
|
|
HealthController,
|
||
|
|
HealthzController,
|
||
|
|
],
|
||
|
|
providers: [HealthService],
|
||
|
|
exports: [HealthService],
|
||
|
|
})
|
||
|
|
export class HealthModule {}
|