#include <userver/ugrpc/server/rpc.hpp>
Public Member Functions | |
CallAnyBase (impl::CallParams &¶ms) | |
virtual void | FinishWithError (const grpc::Status &status)=0 |
Complete the RPC with an error. | |
grpc::ServerContext & | GetContext () |
std::string_view | GetCallName () const |
Name of the call. Consists of service and method names. | |
tracing::Span & | GetSpan () |
utils::AnyStorage< StorageContext > & | GetStorageContext () |
Returns call context for storing per-call custom data. | |
virtual bool | IsFinished () const =0 |
Protected Member Functions | |
ugrpc::impl::RpcStatisticsScope & | Statistics () |
logging::LoggerRef | AccessTskvLogger () |
void | LogFinish (grpc::Status status) const |
|
inline |
|
inlineprotected |
|
pure virtual |
Complete the RPC with an error.
Finish
must not be called multiple times for the same RPC.
status | error details |
ugrpc::server::RpcError | on an RPC error |
Implemented in ugrpc::server::UnaryCall< Response >, ugrpc::server::InputStream< Request, Response >, ugrpc::server::OutputStream< Response >, and ugrpc::server::BidirectionalStream< Request, Response >.
|
inline |
|
inline |
ServerContext
used for this RPC Finish
call
|
inline |
|
inline |
Returns call context for storing per-call custom data.
The context can be used to pass data from server middleware to client handler or from one middleware to another one.
In authentication middleware:
In client handler:
|
inlineprotected |