lib/transport/amqp/AMQPTransport.js
function AMQPTransport(config) {
  this.id = config.id || null;
  this.url = config.url || (config.host && "amqp://" + config.host) || null;
  this['default'] = config['default'] || false;

  this.networkId = this.url;
  this.connection = null;
  this.config = config;
}
function AMQPTransport(config) {
  this.id = config.id || null;
  this.url = config.url || (config.host && "amqp://" + config.host) || null;
  this['default'] = config['default'] || false;

  this.networkId = this.url;
  this.connection = null;
  this.config = config;
}
function AMQPTransport ( config ) { this . id = config . id || null ; this . url = config . url || ( config . host && "amqp://" + config . host ) || null ; this [ 'default' ] = config [ 'default' ] || false ; this . networkId = this . url ; this . connection = null ; this . config = config ; }
Use AMQP as transport
@param {Object} config   Config can contain the following properties:
- `id: string`
- `url: string`
- `host: string`
The config must contain either `url` or `host`.
For example: {url: 'amqp://localhost'} or
{host: 'dev.rabbitmq.com'}
@constructor
Use AMQP as transport