Module: Karafka::Web::Pro::Ui::Lib::Policies

Defined in:
lib/karafka/web/pro/ui/lib/policies.rb,
lib/karafka/web/pro/ui/lib/policies/config.rb,
lib/karafka/web/pro/ui/lib/policies/messages.rb,
lib/karafka/web/pro/ui/lib/policies/requests.rb,
lib/karafka/web/pro/ui/lib/policies/contracts/config.rb

Overview

Policies related contracts

Defined Under Namespace

Modules: Contracts Classes: Config, Messages, Requests

Class Method Summary collapse

Class Method Details

.post_setup(config) ⇒ Object

Validates that the UI policies config is correct

Parameters:

  • config (Karafka::Core::Configurable::Node)

    web config



25
26
27
# File 'lib/karafka/web/pro/ui/lib/policies.rb', line 25

def post_setup(config)
  Policies::Contracts::Config.new.validate!(config.to_h)
end