Members
-
<readonly> module:Feature :string
-
Feature level definitions.
Type:
- string
- Source:
- enum/Feature.js
Properties:
Name Type Default Description CONFstring Configure Configuration
INITstring Initial Initialization, e.g. settings
SERVICEstring Services Services, e.g. loggers, i18n
PLUGINstring Plugins Loading plugins, e.g. middlewares, bootstrap
READYstring Ready Final preparation before service container get into work
validatestring Validate a feature object.
-
<readonly> module:Literal :string
-
Common constant definitions.
Type:
- string
- Source:
- enum/Literal.js
Properties:
Name Type Default Description DEFAULT_CONFIG_PATHstring conf Config files path
FEATURES_PATHstring features Feature files path
APP_CFG_NAMEstring app App config file name
DEFAULT_BOOTSTRAP_PATHstring bootstrap Default bootrap path
DEFAULT_TIMEZONEstring Australia/Sydney Default timezone
MODELS_PATHstring models Models files path, under backend folder
Methods
-
<async> startLoopWorker(worker, options)
-
Parameters:
Name Type Description workerfunction optionsobject - Source:
- starters/loopWorker.js
Properties:
Name Type Argument Default Description options.intervalinteger <optional>
1000 -
<async> startQueueWorker(worker, queueService, queueName, options)
-
Start a message queue worker.
Parameters:
Name Type Description workerfunction queueService* queueName* optionsobject - Source:
- starters/queueWorker.js
-
<async> startWorker(worker [, workerOptions])
-
Start a worker app
Parameters:
Name Type Argument Description workerfunction workerOptionsobject <optional>
- Source:
- starters/worker.js
Properties:
Name Type Argument Description workerOptions.workerNamestring <optional>
workerOptions.dontStopboolean <optional>
Don't stop after worker done
workerOptions.initializerfunction <optional>