Module: Karafka::Pro::Routing::Features::Patterns::Builder
- Defined in:
- lib/karafka/pro/routing/features/patterns/builder.rb
Overview
Expansions for the routing builder
Instance Method Summary collapse
-
#pattern(regexp_or_name, regexp = nil, &block) ⇒ Object
Allows us to define the simple routing pattern matching.
Instance Method Details
#pattern(regexp_or_name, regexp = nil, &block) ⇒ Object
Allows us to define the simple routing pattern matching
28 29 30 31 32 |
# File 'lib/karafka/pro/routing/features/patterns/builder.rb', line 28 def pattern(regexp_or_name, regexp = nil, &block) consumer_group(default_group_id) do pattern(regexp_or_name, regexp, &block) end end |