跳到主要内容
版本:Next

Framework

Hierarchy

Index

Constructors

constructor

Properties

app

app: any

readonlyapplicationContext

applicationContext: IMidwayContainer

configService

configService: MidwayConfigService

configurationOptions

configurationOptions: any

environmentService

environmentService: MidwayEnvironmentService

informationService

informationService: MidwayInformationService

kafKaLogger

kafKaLogger: ILogger

loggerService

loggerService: MidwayLoggerService

middlewareService

middlewareService: MidwayMiddlewareService<IMidwayKafkaContext, unknown, unknown>

mockService

mockService: MidwayMockService

Methods

applicationInitialize

  • applicationInitialize(): Promise<void>

applyMiddleware

  • Type parameters

    • R
    • N

configure

  • configure(): any

createLogger

  • createLogger(name: string, option?: MidwayLoggerOptions): any

getAppDir

  • getAppDir(): string

getApplication

  • getApplication(): any

getApplicationContext

  • getApplicationContext(): IMidwayContainer

getBaseDir

  • getBaseDir(): string

getConfiguration

  • getConfiguration(key?: string): any

publicgetConsumer

  • getConsumer(subscriberNameOrInstanceName: string): any

getCoreLogger

  • getCoreLogger(): ILogger

getCurrentEnvironment

  • getCurrentEnvironment(): string

publicgetFrameworkName

  • getFrameworkName(): string

publicgetFrameworkType

publicgetKafka

  • getKafka(instanceName: string): Kafka

getLogger

  • getLogger(name?: string): any

getMiddleware

getNamespace

  • getNamespace(): string

getProjectName

  • getProjectName(): string

init

initialize

  • initialize(options?: IMidwayBootstrapOptions): Promise<void>

isEnable

  • isEnable(): boolean

publicrun

  • run(): Promise<void>

runGuard

  • runGuard(ctx: IMidwayKafkaContext, supplierClz: new (...args: any[]) => any, methodName: string): Promise<boolean>

setNamespace

  • setNamespace(namespace: string): void

stop

  • stop(): Promise<void>

useFilter

useGuard

useMiddleware