Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AsyncArgdownApplication

Hierarchy

  • ArgdownApplication
    • AsyncArgdownApplication

Index

Constructors

constructor

  • Parameters

    • Optional logger: IArgdownLogger

    Returns AsyncArgdownApplication

Properties

defaultLogger

defaultLogger: IArgdownLogger

defaultProcesses

defaultProcesses: {}

Type declaration

  • [name: string]: string[]

logger

logger: IArgdownLogger

processors

processors: {}

Type declaration

  • [name: string]: IArgdownProcessor

Methods

addPlugin

  • addPlugin(plugin: IArgdownPlugin, processorId?: string): void
  • Parameters

    • plugin: IArgdownPlugin
    • Optional processorId: string

    Returns void

getPlugin

  • getPlugin(name: string, processorId: string): null | IArgdownPlugin
  • Parameters

    • name: string
    • processorId: string

    Returns null | IArgdownPlugin

getPlugins

  • getPlugins(processorId: string): null | IArgdownPlugin[]
  • Parameters

    • processorId: string

    Returns null | IArgdownPlugin[]

load

  • load(request: IArgdownRequest): Promise<undefined | IArgdownResponse[]>

loadConfig

  • loadConfig(filePath?: string): Promise<IArgdownRequest>

removePlugin

  • removePlugin(plugin: IArgdownPlugin, processorId?: string): void
  • Parameters

    • plugin: IArgdownPlugin
    • Optional processorId: string

    Returns void

removeProcessor

  • removeProcessor(processorId: string): void
  • Parameters

    • processorId: string

    Returns void

replacePlugin

  • replacePlugin(oldPluginId: string, newPlugin: IArgdownPlugin, processorId?: string): void
  • Parameters

    • oldPluginId: string
    • newPlugin: IArgdownPlugin
    • Optional processorId: string

    Returns void

run

  • run(request: IArgdownRequest, response?: IArgdownResponse): IArgdownResponse
  • Parameters

    • request: IArgdownRequest
    • Optional response: IArgdownResponse

    Returns IArgdownResponse

runAsync

  • runAsync(request: IArgdownRequest, response?: IArgdownResponse): Promise<IArgdownResponse>

Generated using TypeDoc