Creates topology using amqplib
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
test/helpers
.babelrc
.editorconfig
.eslintignore
.gitignore
.npmignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
package-lock.json
package.json

README.md

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 ) );