Sha256: 99982820c87e799f1c6ade349c7146e1dca49cb4ce7456e48272292ba64ac799

Contents?: true

Size: 486 Bytes

Versions: 7

Compression:

Stored size: 486 Bytes

Contents

module Auditing
  module Handlers
    class Status < SubZero::Service::Handler

      def show
        reply :working
      end

      def count
        reply_with Log.count
      end

    end
  end
end

__END__

#params is the message payload desserialized from messagepack

#request_id is accessible through here

#reply(verb, payload = nil)

#reply_with(content) => same verb
#reply_with(verb, content) => other verb
(both serialize content to msgpack)

#logger might be very useful

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sub_zero-0.0.9 example/auditing/lib/auditing/handlers/status.rb
sub_zero-0.0.8 example/auditing/lib/auditing/handlers/status.rb
sub_zero-0.0.7 example/auditing/lib/auditing/handlers/status.rb
sub_zero-0.0.6 example/auditing/lib/auditing/handlers/status.rb
sub_zero-0.0.5 example/auditing/lib/auditing/handlers/status.rb
sub_zero-0.0.4 example/auditing/lib/auditing/handlers/status.rb
sub_zero-0.0.3 example/auditing/lib/auditing/handlers/status.rb