#include <userver/ugrpc/client/middlewares/baggage/middleware.hpp>
middleware for gRPC client baggage
Definition at line 10 of file middleware.hpp.
Public Member Functions | |
void | PreStartCall (MiddlewareCallContext &context) const override |
This function is called before rpc, on each rpc. It does nothing by default. | |
virtual void | PreSendMessage (MiddlewareCallContext &, const google::protobuf::Message &) const |
This function is called before sending message, on each request. It does nothing by default. | |
virtual void | PostRecvMessage (MiddlewareCallContext &, const google::protobuf::Message &) const |
This function is called after receiving message, on each response. It does nothing by default. | |
virtual void | PostFinish (MiddlewareCallContext &, const grpc::Status &) const |
This function is called after rpc, on each rpc. It does nothing by default. | |
Static Public Attributes | |
static constexpr std::string_view | kName = "grpc-client-baggage" |
The default name of ugrpc::client::middlewares::baggage::Component. | |
static const auto | kDependency = ::middlewares::MiddlewareDependencyBuilder() |
dependency of this middleware. User group as default. | |
|
virtualinherited |
This function is called after rpc, on each rpc. It does nothing by default.
Reimplemented in ugrpc::client::middlewares::testsuite::Middleware.
|
virtualinherited |
This function is called after receiving message, on each response. It does nothing by default.
GenericClient
messages Reimplemented in grpc_protovalidate::client::Middleware.
|
virtualinherited |
This function is called before sending message, on each request. It does nothing by default.
GenericClient
messages
|
overridevirtual |
This function is called before rpc, on each rpc. It does nothing by default.
Reimplemented from ugrpc::client::MiddlewareBase.
|
inlinestatic |
dependency of this middleware. User group as default.
Definition at line 17 of file middleware.hpp.