Sha256: 3cb84d9c3c3b07760eea30a7e721e5192b2858b9b8fef0ee8f0b52220ee368e9
Contents?: true
Size: 567 Bytes
Versions: 3
Compression:
Stored size: 567 Bytes
Contents
# coding: utf-8 # frozen_string_literal: true require 'micro/proto/debug_pb' module MicroRb module Handlers class Debug include MicroRb::Handler include MicroRb::Debug handler name: :debug, metadata: { about: 'Health check endpoint' }, rpc_method: :health def health(request: Request.new, response: Response.new) response.status = 'ok' # default response end # Override this to set Health capital. def full_rpc_name "#{self.class.to_s.split('::').last}.Health" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
micro-rb-0.1.0.rc3 | lib/micro/handlers/debug.rb |
micro-rb-0.1.0.rc2 | lib/micro/handlers/debug.rb |
micro-rb-0.1.0.rc1 | lib/micro/handlers/debug.rb |