- Source
Members
(static) ConfigSchema :Object
Joi validator that describes any expected config for this middleware
Type:
- Object
- Source
(static) Description :string
Type:
- string
- Source
(static) info :module:Service.IMiddleware.MiddlewareInfo
- Source
(static) Name :string
Type:
- string
- Source
(static) Type
Type of middleware. Allowed values are pre
or post
- Source
Methods
(async, static) run(context)
Parameters:
Name | Type | Description |
---|---|---|
context | module:Service. | |
options.Config | * | The config options set for this instance of middleware |
- Source
(async, static) start(party)
Parameters:
Name | Type | Description |
---|---|---|
party | module:Party. |
- Source
Type Definitions
MiddlewareInfo
Type:
Properties- Object
Name | Type | Description |
---|---|---|
Name | string | |
Type | string | |
Description | string | |
ConfigSchema | Object |
- Source