Definition at line 22 of file call_context.hpp.
Inheritance diagram for ugrpc::server::CallContextBase:Public Member Functions | |
| CallContextBase (CallContextBase &&)=delete | |
| CallContextBase & | operator= (CallContextBase &&)=delete |
| grpc::ServerContext & | GetServerContext () |
| std::string_view | GetCallName () const |
Name of the RPC in the format full.path.ServiceName/MethodName | |
| std::string_view | GetServiceName () const |
| Get name of gRPC service. | |
| std::string_view | GetMethodName () const |
| Get name of called gRPC method. | |
| tracing::Span & | GetSpan () |
| Get the span of the current RPC. | |
| utils::AnyStorage< StorageContext > & | GetStorageContext () |
| Returns call context for storing per-call custom data. | |
| grpc::ServerContext & ugrpc::server::CallContextBase::GetServerContext | ( | ) |
ServerContext used for this RPC | utils::AnyStorage< StorageContext > & ugrpc::server::CallContextBase::GetStorageContext | ( | ) |
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: