Sha256: 237e266ac9e50018e3249a4927b5ca5f3928d6399b8f5663109e73c0e8a94f57
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
# frozen_string_literal: true require 'grpc_kit/status_codes' module GrpcKit module Rpcs module Client class Error # def invoke(session, request, authority:, error) # end end end module Server class Error def send_bad_status(stream, session, bad_status) ss = GrpcKit::Streams::Server.new(stream: stream, protobuf: nil, session: session) ss.send_status(status: bad_status.code, msg: bad_status.grpc_message) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grpc_kit-0.1.3 | lib/grpc_kit/rpcs/error.rb |