How to use the @laconia/event.kinesis function in @laconia/event

To help you get started, we’ve selected a few @laconia/event examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github laconiajs / laconia / packages / laconia-acceptance-test / src / notify-restaurant.js View on Github external
const adapter = app => (event, dependencies) => {
  const orderEvents = kinesis(event).records.map(r => r.jsonData);
  return app(orderEvents, dependencies);
};
github laconiajs / laconia / packages / laconia-adapter / src / KinesisJsonInputConverter.js View on Github external
convert(event) {
    return kinesis(event).records.map(r => r.jsonData);
  }
};