cantina-amino
v4.1.5
Published
Enables a Cantina app to be auto-clustered by Amino
Downloads
10
Readme
cantina-amino
Enables a Cantina app to be auto-clustered by Amino.
Dependencies
- app.server must be a valid server object.
Provides
- app.amino - An amino instance.
- app.service - An amino service attached to
app.http
.
Configuration
- amino:service - A service name and version.
- amino:... - All amino configuration will be passed to
amino.init()
.
Defaults
{
amino: {
service: {
name: app.pkgData ? app.pkgData.name : 'app',
version: app.pkgData ? app.pkgData.version : '0.0.0'
},
silent: false
}
}
Using an amino plugin
var app = require('cantina').createApp()
, queue = require('amino-queue');
app.boot(function (err) {
if (err) throw err;
// Load cantina-amino, which exposes `app.amino`.
app.require('cantina-amino');
// Use plugins.
app.amino.use(queue, {options...});
// Start the app.
app.start();
});
Developed by Terra Eclipse
Terra Eclipse, Inc. is a nationally recognized political technology and strategy firm located in Santa Cruz, CA and Washington, D.C.