userver: ugrpc::server::MiddlewareCallContext Class Reference
Loading...
Searching...
No Matches
ugrpc::server::MiddlewareCallContext Class Referencefinal

#include <userver/ugrpc/server/middlewares/base.hpp>

Detailed Description

Context for middleware-specific data during gRPC call.

Examples
samples/grpc_middleware_service/src/middlewares/server/middleware.cpp, and samples/grpc_middleware_service/src/middlewares/server/middleware.hpp.

Definition at line 20 of file base.hpp.

Public Member Functions

void Next ()
 Call next plugin, or gRPC handler if none.
 
CallAnyBaseGetCall ()
 Get original gRPC Call.
 
std::string_view GetServiceName () const
 Get name of gRPC service.
 
std::string_view GetMethodName () const
 Get name of called gRPC method.
 
const dynamic_config::SnapshotGetInitialDynamicConfig () const
 Get values extracted from dynamic_config. Snapshot will be deleted when the last meddleware completes.
 
const ::google::protobuf::Message * GetInitialRequest ()
 Get initial gRPC request. For RPC w/o initial request returns nullptr.
 

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