Sha256: 3e9c4ed0cac7d5895c1124ba49881677ec0423711028d63e8bac2d407d0761fd
Contents?: true
Size: 1.77 KB
Versions: 17
Compression:
Stored size: 1.77 KB
Contents
# frozen_string_literal: true # This Karafka component is a Pro component under a commercial license. # This Karafka component is NOT licensed under LGPL. # # 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 Web module Ui module Pro module Controllers # Controller for displaying consumers states and details about them class Consumers < Ui::Controllers::Base # Consumers list def index @current_state = Models::State.current! processes_total = Models::Processes.active(@current_state) @counters = Lib::HashProxy.new(@current_state[:stats]) @processes, @next_page = Lib::PaginateArray.new.call( processes_total, @params.current_page ) respond end # @param process_id [String] id of the process we're interested in def jobs(process_id) current_state = Models::State.current! @process = Models::Process.find(current_state, process_id) respond end # @param process_id [String] id of the process we're interested in def subscriptions(process_id) current_state = Models::State.current! @process = Models::Process.find(current_state, process_id) respond end end end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems