<abstract> new Plugin(mid, options)
Parameters:
Name | Type | Description |
---|---|---|
mid |
Midgar | Midgar instance |
options |
PluginOptions | Options |
Members
-
config :PluginConfig
-
Plugin config from plugin-config.js
Type:
-
mid :Midgar
-
Midgar Instance
Type:
-
moduleTypes :object
-
Module types from plugin-config.js
Type:
- object
-
name :string
-
Plugin name
Type:
- string
-
package :object
-
Package.json
Type:
- object
-
path :string
-
Plugin absolute path
Type:
- string
-
pm :PluginManager
-
Plugin Manager
Type:
Methods
-
getModuleType(type)
-
Return plugin module type configuration
Parameters:
Name Type Description type
string Module type Returns:
- Type
- ModuleType
-
<async> init()
-
Init method
Returns:
- Type
- Promise.<void>