This package delivers base classes and helpers for ApiDataSources and Extensions.
To define your own extension (high-level data provider) - you would need to create a new package and export its main class:
Check Extension API reference for more methods.
To define your own API class (low-level data provider) - you would need to create a new package and export its main class:
Then in your project's config (
server app) - you need to declare them and assign your API to your Extension:
falcon-server-env package provides a list of events, that are being handled by Falcon-Server app
during the whole runtime.
In order to use events - Falcon-Server exposes
eventemitter2) and passes it
to the following classes (and derived from these classes):
To use the events within your class - you would need to import
Events object and use it like:
Async event handlers are supported!
To check the order of the events - you should set
verboseEventsconfig key to