Sha256: 1ac8425e16ef7d8862c81aeba2ec385c5093093929cd5275c7b8b8c733717522
Contents?: true
Size: 1.05 KB
Versions: 11
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true # This Karafka component is a Pro component. # All of the commercial components are present in the lib/karafka/pro directory of this # repository and their usage requires commercial license agreement. # # Karafka has also commercial-friendly license, commercial support and commercial components. # # By sending a pull request to the pro components, you are agreeing to transfer the copyright of # your code to Maciej Mensfeld. module Karafka module Pro module Contracts # Contract for validating correct Pro components setup on a topic levels class ConsumerGroupTopic < Base configure do |config| config.error_messages = YAML.safe_load( File.read( File.join(Karafka.gem_root, 'config', 'errors.yml') ) ).fetch('en').fetch('validations').fetch('pro_consumer_group_topic') end virtual do |data| next if data[:consumer] < Karafka::Pro::BaseConsumer [[%i[consumer], :consumer_format]] end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems