Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
enigmatic00 committed Jun 20, 2016
1 parent b8eece0 commit ac795d0
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 2 deletions.
60 changes: 59 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,62 @@ fudd.teardown(config, function(err){
});
```

## Configuration
## Configuration

Configuration should look like the following:
```javascript
{
cluster: {
port: 5672,
vhost: '/',
login: 'guest',
heartbeat: 10,
password: 'guest',
host: 'rabbit'
},
exchanges: [
{
name: 'fanout.fx',
type: 'fanout',
options: {}
},
{
name: 'topic.tx',
type: 'topic',
options: {}
}
],
queues: [
{
name: 'queue1',
options: {durable: true}
},
{
name: 'queue2',
options: {durable: false}
}
],

bindings: [
{
bindingType: 'queue',
from: 'fanout.fx',
to: 'queue1',
bindingKeys: ['#']
},
{
bindingType: 'exchange',
from: 'fanout.fx',
to: 'topic.tx',
bindingKeys: ['#'],
options: {}
},
{
bindingType: 'queue',
from: 'topic.tx',
to: 'queue2',
bindingKeys: ['#.topic1', '#.topic2']
}
]
}
```
1 change: 0 additions & 1 deletion test/integration/config/default.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict';
var os = require('os');
module.exports = {
cluster: {
port: 5672,
Expand Down

0 comments on commit ac795d0

Please sign in to comment.