cantina-amino

4.1.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i cantina-amino

Weekly Downloads

1

Version

4.1.5

License

none

Last publish

Collaborators

  • cpsubrian
  • carlos8f
  • jahjahd