Sha256: 52bf16bdc79239f7b015fd714ee7ef6ca1fcc83f9b16268be2a8f23791545839
Contents?: true
Size: 1.76 KB
Versions: 10
Compression:
Stored size: 1.76 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 # Errors details controller class Errors < Ui::Controllers::Base # @param partition_id [Integer] id of the partition of errors we are interested in def index(partition_id) errors_topic = ::Karafka::Web.config.topics.errors @partition_id = partition_id @previous_page, @error_messages, @next_page, @partitions_count = \ Models::Message.page( errors_topic, @partition_id, @params.current_page ) respond end # Shows given error details # # @param partition_id [Integer] # @param offset [Integer] def show(partition_id, offset) errors_topic = ::Karafka::Web.config.topics.errors @partition_id = partition_id @offset = offset @error_message = Models::Message.find( errors_topic, @partition_id, @offset ) respond end end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems