express-cocaine-service
Cocaine service middleware wrapper for express
Cocaine
This module will work only in cocained express applicaion
Install
npm install express-cocaine-service --save
Example
var app = ; // with default client// new cocaine.Client(argv.locator)app; // or with custom clientvar Vow = ;var promises = ;var methods = promises;var cocaine = ;var client = 'apefront.tst.ape.yandex.net' 10053 methodsapp; app;
API
express-cocaine-service([options,] service, service, ...)
Request services from cocaine and store put links to them at every request.
Options
[options.client]
— predefined custom cocaine client
See connect-once options.