compose/transporter — pull request #22 by nstott (2014-12-22 15:43:08+00:00)
Title: 21-adaptorconfig

This expands on the adaptors registry, to include both a constructor and a config struct for each adaptor.
The registry is exposed, and the config structs are inspectable. the struct fields in the config are tagged with a doc string \`doc:"doc string"\`.
a new command is added to the utility in to query these configs. `transporter about`
```
transporter about
influx an InfluxDB sink adaptor
transformer an adaptor that transforms documents using a javascript function
mongo a mongodb adaptor that functions as both a source and a sink
file an adaptor that reads / writes files
elasticsearch an elasticsearch sink adaptor
```
and `transporter about mongo`
```
transporter about mongo
name type description
uri string the uri to connect to, in the form mongodb://user:password@host.com:27017/auth_database
namespace string mongo namespace to read/write
debug bool display debug information
tail bool if tail is true, then the mongodb source will tail the oplog after copying the namespace
```

In order to normalize the way these configs are passed in the application.js, the transformers now take a hash and not a straight string
where once we had:
`Source({name:"foofile"}).transform({"transformers/passthrough_and_log.js").save({name:"errorfile"})`
now we have
`Source({name:"foofile"}).transform({filename: "transformers/passthrough_and_log.js"}).save({name:"errorfile"})`

This is a breaking change, and the version has been bumped to 0.0.2