class NWitchGRPCClient::Check
Public Class Methods
check()
click to toggle source
# File lib/nwitch_grpc_client/check.rb, line 3 def self.check service = self.new service.check end
new()
click to toggle source
# File lib/nwitch_grpc_client/check.rb, line 8 def initialize host = NWitchGRPCClient.configuration.grpc_host @stub = NWitchGRPC::Protobuf::Health::Stub .new(host, :this_channel_is_insecure) end
Public Instance Methods
check()
click to toggle source
# File lib/nwitch_grpc_client/check.rb, line 15 def check req = @stub.check(build_req) req.status end
Private Instance Methods
build_req()
click to toggle source
# File lib/nwitch_grpc_client/check.rb, line 23 def build_req NWitchGRPC::Protobuf::HealthCheckRequest.new(service: 'nwitch') end