amqplib-topology

3.0.0 • Public • Published

amqplib-topology

NPM Version Build Coverage

Asserts a Rabbit MQ topology using the amqp.node library.

Usage:

const amqp = require( "amqplib" );
const amqpTopology = require( "amqplib-topology" );
 
let ok = amqp.connect( rabbitUri );
 
ok = ok
    .then( connection => {
        return amqpTopology( connection ).assert( {
            exchanges: {
                "events": {
                    "type": "fanout"
                }
            }
        } );
    } )
    .then( topology => console.log( "Topology created!", topology.exchanges.events ) )
    .catch( err => console.error( err ) );

Readme

Keywords

none

Package Sidebar

Install

npm i amqplib-topology

Weekly Downloads

5

Version

3.0.0

License

none

Unpacked Size

13 kB

Total Files

9

Last publish

Collaborators

  • bunk