Class: Rimless::Karafka::PassthroughMapper
- Inherits:
-
Object
- Object
- Rimless::Karafka::PassthroughMapper
- Defined in:
- lib/rimless/karafka/passthrough_mapper.rb
Overview
The Karafka framework makes some assumptions about the consumer group and topic names. We have our own opinions/conventions, so we just pass them through unmodified.
Instance Method Summary collapse
-
#call(raw_consumer_group_name) ⇒ String, Symbol
We do not want to modify the given consumer group name, so we pass it through.
-
#incoming(topic) ⇒ String, Symbol
(also: #outgoing)
We do not want to modify the given topic name, so we pass it through.
Instance Method Details
#call(raw_consumer_group_name) ⇒ String, Symbol
We do not want to modify the given consumer group name, so we pass it through.
15 16 17 |
# File 'lib/rimless/karafka/passthrough_mapper.rb', line 15 def call(raw_consumer_group_name) raw_consumer_group_name end |
#incoming(topic) ⇒ String, Symbol Also known as: outgoing
We do not want to modify the given topic name, so we pass it through.
23 24 25 |
# File 'lib/rimless/karafka/passthrough_mapper.rb', line 23 def incoming(topic) topic end |