Sha256: 3696e88ac0bbdb6117552dbd7b84459a09a2bea259ccf50447873dd30c5ac969
Contents?: true
Size: 1020 Bytes
Versions: 10
Compression:
Stored size: 1020 Bytes
Contents
# frozen_string_literal: true module Karafka module Web module Ui module Controllers # Errors displaying controller # It supports only scenarios with a single partition for errors # If you have high load of errors, consider going Pro class Errors < Base # Lists first page of the errors def index @previous_page, @error_messages, @next_page, = Models::Message.page( errors_topic, 0, @params.current_page ) respond end # @param offset [Integer] given error message offset def show(offset) @error_message = Models::Message.find( errors_topic, 0, offset ) respond end private # @return [String] errors topic def errors_topic ::Karafka::Web.config.topics.errors end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems