Sha256: 32039244c4ee1eb44a4c2016a370620605797aa5a8208babcb4d2b5bf76ccbae

Contents?: true

Size: 361 Bytes

Versions: 13

Compression:

Stored size: 361 Bytes

Contents

module Sbmt
  module KafkaConsumer
    module Routing
      class KarafkaV1ConsumerMapper < Karafka::Routing::ConsumerMapper
        def call(raw_consumer_group_name)
          client_id = ActiveSupport::Inflector.underscore(Karafka::App.config.client_id).tr("/", "_")
          "#{client_id}_#{raw_consumer_group_name}"
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sbmt-kafka_consumer-2.8.0 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb
sbmt-kafka_consumer-2.7.1 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb
sbmt-kafka_consumer-2.7.0 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb
sbmt-kafka_consumer-2.6.1 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb
sbmt-kafka_consumer-2.6.0 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb
sbmt-kafka_consumer-2.5.0 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb
sbmt-kafka_consumer-2.4.1 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb
sbmt-kafka_consumer-2.4.0 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb
sbmt-kafka_consumer-2.3.1 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb
sbmt-kafka_consumer-2.3.0 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb
sbmt-kafka_consumer-2.2.0 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb
sbmt-kafka_consumer-2.1.0 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb
sbmt-kafka_consumer-2.0.0 lib/sbmt/kafka_consumer/routing/karafka_v1_consumer_mapper.rb