Cher Source Stream Interface
This is an adapter for any source of data to be interoperable with the cher stream manager. A cher source stream must utilize this adapter as well as implement a set of functions which will allow it to emit data properly.
module.exports = (deps) => {
deps = deps || {};
const dataSchema = require('./schema')();
const implementation = require('./implementation');
const adapter = require('cher-source-interface').adapter;
const options = {
schema: dataSchema,
type: 'myDataSource',
name: 'myDataSource',
impl: implementation
};
return adapter(deps, options);
};