Class: Karafka::Routing::TopicMapper
- Inherits:
-
Object
- Object
- Karafka::Routing::TopicMapper
- Defined in:
- lib/karafka/routing/topic_mapper.rb
Overview
Default topic mapper that does not remap things Mapper can be used for Kafka providers that require namespaced topic names. Instead of being provider dependent, we can then define mapper and use internally “pure” topic names in routes and responders
Instance Method Summary collapse
-
#incoming(topic) ⇒ String, Symbol
Same topic as on input.
-
#outgoing(topic) ⇒ String, Symbol
Same topic as on input.
Instance Method Details
#incoming(topic) ⇒ String, Symbol
Returns same topic as on input.
40 41 42 |
# File 'lib/karafka/routing/topic_mapper.rb', line 40 def incoming(topic) topic end |
#outgoing(topic) ⇒ String, Symbol
Returns same topic as on input.
48 49 50 |
# File 'lib/karafka/routing/topic_mapper.rb', line 48 def outgoing(topic) topic end |