Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPlugin

一个pinus插件

Hierarchy

Index

Properties

Optional afterStartAll

afterStartAll: function

Type declaration

Optional afterStartup

afterStartup: function

Type declaration

    • Parameters

      Returns void

Optional beforeShutdown

beforeShutdown: function

Type declaration

    • (app: Application, shutDown: function, cancelShutDownTimer: function): void
    • Parameters

      • app: Application
      • shutDown: function
          • (): void
          • Returns void

      • cancelShutDownTimer: function
          • (): void
          • Returns void

      Returns void

Optional beforeStartup

beforeStartup: function

Type declaration

    • Parameters

      Returns void

Optional components

components: ComponentContructor[]

启动插件时需要自动加载的组件

Optional cronPath

cronPath: string

插件暴漏的crons所在的路径

Optional events

启动插件时需要侦听的应用程序事件

Optional handlerPath

handlerPath: string

插件暴漏的handler所在的路径

name

name: string

插件的名称

Optional remoterPath

remoterPath: string

插件暴漏的remoters所在的路径