userver: ugrpc::client::CallAnyBase Class Reference
Loading...
Searching...
No Matches
ugrpc::client::CallAnyBase Class Reference

#include <userver/ugrpc/client/rpc.hpp>

Detailed Description

Base class for any RPC.

Definition at line 117 of file rpc.hpp.

+ Inheritance diagram for ugrpc::client::CallAnyBase:

Public Member Functions

grpc::ClientContext & GetContext ()
 
std::string_view GetClientName () const
 
std::string_view GetCallName () const
 
tracing::SpanGetSpan ()
 

Protected Member Functions

impl::RpcData & GetData ()
 

Member Function Documentation

◆ GetCallName()

std::string_view ugrpc::client::CallAnyBase::GetCallName ( ) const
Returns
RPC name

◆ GetClientName()

std::string_view ugrpc::client::CallAnyBase::GetClientName ( ) const
Returns
client name

◆ GetContext()

grpc::ClientContext & ugrpc::client::CallAnyBase::GetContext ( )
Returns
the ClientContext used for this RPC
Examples
samples/grpc_middleware_service/src/middlewares/client/middleware.cpp.

◆ GetSpan()

tracing::Span & ugrpc::client::CallAnyBase::GetSpan ( )
Returns
RPC span

The documentation for this class was generated from the following file: