Sha256: 2009bb79ed02a3681f2cf9d6741665320c3ebfa348e32ecbd243ff05f2a7dcda

Contents?: true

Size: 761 Bytes

Versions: 17

Compression:

Stored size: 761 Bytes

Contents

# frozen_string_literal: true

module Karafka
  module Web
    module Ui
      module Controllers
        # Consumers (consuming processes - `karafka server`) processes display consumer
        class Consumers < Base
          # List page with consumers
          # @note For now we load all and paginate over the squashed data.
          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
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
karafka-web-0.5.2 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.5.1 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.5.0 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.4.1 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.4.0 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.3.1 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.3.0 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.2.5 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.2.4 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.2.3 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.2.2 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.2.1 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.2.0 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.1.3 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.1.2 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.1.1 lib/karafka/web/ui/controllers/consumers.rb
karafka-web-0.1.0 lib/karafka/web/ui/controllers/consumers.rb