Definition at line 10 of file middleware.hpp.
Public Member Functions | |
void | OnCallStart (MiddlewareCallContext &context) const override |
This hook is invoked once per Call (RPC), after the message metadata is received, but before the handler function is called. | |
void | OnCallFinish (MiddlewareCallContext &context, const grpc::Status &status) const override |
This hook is invoked once per Call (RPC), after the handler function returns, but before the message is sent to the upstream client. | |
virtual void | PostRecvMessage (MiddlewareCallContext &context, google::protobuf::Message &request) const |
The function is invoked after each received message. | |
virtual void | PreSendMessage (MiddlewareCallContext &context, google::protobuf::Message &response) const |
The function is invoked before each sended message. | |
Static Public Attributes | |
static constexpr std::string_view | kName = "grpc-server-deadline-propagation" |
The default name of. | |
static const auto | kDependency |
dependency of this middleware | |
|
overridevirtual |
This hook is invoked once per Call (RPC), after the handler function returns, but before the message is sent to the upstream client.
All OnCallStart invoked in the reverse order relatively OnCallFinish. You can change grpc status and it will apply for a rpc call.
Reimplemented from ugrpc::server::MiddlewareBase.
|
overridevirtual |
This hook is invoked once per Call (RPC), after the message metadata is received, but before the handler function is called.
If all OnCallStart succeeded => OnCallFinish will invoked after a success method call.
Reimplemented from ugrpc::server::MiddlewareBase.
|
virtualinherited |
The function is invoked after each received message.
PostRecvMessage is called:
Reimplemented in grpc_protovalidate::server::Middleware.
|
virtualinherited |
The function is invoked before each sended message.
PreSendMessage is called:
|
inlinestatic |
dependency of this middleware
Definition at line 18 of file middleware.hpp.