Class: Karafka::Contracts::ConsumerGroup

Inherits:
Base
  • Object
show all
Defined in:
lib/karafka/contracts/consumer_group.rb

Overview

Contract for single full route (consumer group + topics) validation.

Class Method Summary collapse

Methods inherited from Base

#validate!

Class Method Details

.topic_unique_key(topic) ⇒ String

Returns topic unique key for validators.

Parameters:

  • topic (Hash)

    topic config hash

Returns:

  • (String)

    topic unique key for validators



75
76
77
# File 'lib/karafka/contracts/consumer_group.rb', line 75

def topic_unique_key(topic)
  topic[:name]
end