Entry point module
This is where everything begins: We instanciate a new service and start it for everyone to see :3
Methods
(static) addMiddlewares(config, service) → {Promise.<Object>}
Add middlewares to the context
Parameters:
| Name | Type | Description |
|---|---|---|
config |
Object | Current config |
service |
Object | Service reference |
Returns:
Mutated with middlewares
- Type
- Promise.<Object>
(static) createService(config) → {Promise.<Object>}
Create a service exports with given context
Parameters:
| Name | Type | Description |
|---|---|---|
config |
Object | Current config |
Returns:
New service having models and middlewares
- Type
- Promise.<Object>
(static) main(config) → {Promise.<Object>}
The holy function at the beginning of everything
Parameters:
| Name | Type | Description |
|---|---|---|
config |
Object | Current configuration |
Returns:
Started service
- Type
- Promise.<Object>
(static) startService(config, service) → {Promise.<Object>}
Start a service exports
Parameters:
| Name | Type | Description |
|---|---|---|
config |
Object | Config reference |
service |
Object | Service reference |
Returns:
Started service
- Type
- Promise.<Object>