struct

GRPC::CallInfo

Inherits Struct < Value < Object

CallInfo carries metadata about an in-flight RPC call passed to interceptors. Interceptors should use this instead of parsing raw strings.

Example: def call(info : GRPC::CallInfo, request, ctx, next_call) STDERR.puts "→ #{info.method_path} (#{info.kind})" next_call.call(info.method_path, request, ctx) end

Constructors

new(method_path : String, kind : RPCKind)
Source

Instance methods

kind

Streaming kind of this RPC

Source
method

method returns the method name portion of the path, e.g. "SayHello"

Source
method_path

Full gRPC method path, e.g. "/helloworld.Greeter/SayHello"

Source
service

service returns the service portion of the path, e.g. "helloworld.Greeter"

Source