workflow / Exports / EventHandlerFactory
Interface: EventHandlerFactory
Event handler factory interface
Table of contents
Methods
Methods
create
▸ create(config?): EventHandler
Create handler instance
Parameters
| Name | Type |
|---|---|
config? | EventHandlerConfig |
Returns
Defined in
interfaces/event-handler.ts:165
getHandlerInfo
▸ getHandlerInfo(): Object
Get handler type information
Returns
Object
| Name | Type |
|---|---|
name | string |
version | string |
description | string |
supportedEventTypes | string[] |
Defined in
interfaces/event-handler.ts:170
validateConfig
▸ validateConfig(config): Object
Validate configuration
Parameters
| Name | Type |
|---|---|
config | EventHandlerConfig |
Returns
Object
| Name | Type |
|---|---|
isValid | boolean |
errors | string[] |