1.0.0 • Published 6 years ago

n3h-mapper-builder v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

N3H Mapper Builder

Help build mapper messager.

Conventions for Mapper

  • each mapper has a name prefixed with 'mapper', such as mapper.$mapper
  • each mapper uses its name as queue group name
  • it maps one message to another

API

(Options) => Void

Options ~ {
  natsEx: NatsEx,
  name,
  inTopic,
  outTopic,
  validator?: (data) => data,
  mapData?: (data, message, receivedTopic) => Promise => data,
}

License

MIT