Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MidwayFaaSFramework

Hierarchy

Implements

Properties

Protected BaseContextLoggerClass

BaseContextLoggerClass: any

app

Protected appLogger

appLogger: ILogger

Protected applicationContext

applicationContext: IMidwayContainer

configurationOptions

configurationOptions: IFaaSConfigurationOptions

Protected defaultContext

defaultContext: object

Type declaration

Protected defaultHandlerMethod

defaultHandlerMethod: string = "handler"

Protected funMappingStore

funMappingStore: Map<string, RouterInfo> = new Map()

Protected isMainFramework

isMainFramework: boolean

Protected isTsMode

isTsMode: boolean

Protected logger

logger: any

Methods

Protected addConfiguration

  • addConfiguration(filePath: string, fileDir?: string, namespace?: string): void

Protected afterContainerDirectoryLoad

  • afterContainerDirectoryLoad(options: Partial<IMidwayBootstrapOptions>): Promise<void>

Protected afterContainerInitialize

  • afterContainerInitialize(options: Partial<IMidwayBootstrapOptions>): Promise<void>

Protected afterContainerReady

  • afterContainerReady(options: Partial<IMidwayBootstrapOptions>): Promise<void>

applicationInitialize

  • applicationInitialize(options: IMidwayBootstrapOptions): Promise<void>

Protected beforeContainerInitialize

  • beforeContainerInitialize(options: Partial<IMidwayBootstrapOptions>): Promise<void>

Protected beforeStop

  • beforeStop(): Promise<void>

configure

Protected containerDirectoryLoad

  • containerDirectoryLoad(options: IMidwayBootstrapOptions): Promise<void>

Protected containerInitialize

  • containerInitialize(options: IMidwayBootstrapOptions): Promise<void>

Protected containerReady

  • containerReady(options: IMidwayBootstrapOptions): Promise<void>

Protected containerStop

  • containerStop(): Promise<void>

Protected createContextLogger

  • createContextLogger(ctx: FaaSContext, name?: string): ILogger

createLogger

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

Protected defineApplicationProperties

  • defineApplicationProperties(applicationProperties?: object, whiteList?: string[]): void

generateMiddleware

getAppDir

  • getAppDir(): string

getApplication

getApplicationContext

  • getApplicationContext(): IMidwayContainer

getBaseDir

  • getBaseDir(): string

getConfiguration

  • getConfiguration(key?: string): any

getContext

  • getContext(context: any): any

getCoreLogger

  • getCoreLogger(): ILogger

getCurrentEnvironment

  • getCurrentEnvironment(): string

getDefaultContextLoggerClass

  • getDefaultContextLoggerClass(): any

getFrameworkName

  • getFrameworkName(): string

getFrameworkType

Protected getFunctionHandler

  • getFunctionHandler(ctx: any, args: any, target: any, method: any): string

getLogger

  • getLogger(name?: string): ILogger

getProjectName

  • getProjectName(): any

handleInvokeWrapper

  • handleInvokeWrapper(handlerMapping: string): (Anonymous function)

Protected initConfiguration

  • initConfiguration(filePath: string, fileDir?: string): void

initialize

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

Protected initializeInfo

  • initializeInfo(options: IMidwayBootstrapOptions): Promise<void>

Protected initializeLogger

  • initializeLogger(options: IMidwayBootstrapOptions): Promise<void>

loadExtension

  • loadExtension(): Promise<void>

loadLifeCycles

  • loadLifeCycles(isForce?: boolean): Promise<void>

run

  • run(): Promise<void>

Protected setContextLoggerClass

  • setContextLoggerClass(BaseContextLogger: any): void

stop

  • stop(): Promise<void>

Protected stopLifeCycles

  • stopLifeCycles(): Promise<void>

Generated using TypeDoc