Repository of common service factories.
npm install @kapitchi/bb-dic-factory
TODO
- amqpConnection(amqpConnectionOpts) ⇒
Promise
- mongoConnection(mongoConnectionOpts) ⇒
Promise
- senecaAsyncFactory(senecaOpts) ⇒
Promise
Kind: global function
Requires: module:amqplib
Param | Type |
---|---|
amqpConnectionOpts | Object |
amqpConnectionOpts.url | String |
Example
dic.asyncFactory('amqpConnection', require('@kapitchi/bb-dic-factory/src/amqp-connection.async-factory'));
Kind: global function
Requires: module:mongodb
Param | Type |
---|---|
mongoConnectionOpts | |
mongoConnectionOpts.url | String |
Example
dic.asyncFactory('mongoConnection', require('@kapitchi/bb-dic-factory/src/mongo-connection.async-factory'));
Kind: global function
Requires: module:seneca
Param | Type |
---|---|
senecaOpts | Object |
Example
dic.asyncFactory('seneca', require('@kapitchi/bb-dic-factory/src/seneca.async-factory'));
Run the command below to builds es5 folder and README.md.
npm run build
npm test