#include <userver/ugrpc/server/middlewares/base.hpp>
Service meta info for a middleware construction.
Public Attributes | |
| std::string | service_component_name |
| Name of the service component for which the middlewares are being instantiated. | |
| std::optional< std::string > | full_service_name |
| const google::protobuf::ServiceDescriptor * | service_descriptor {nullptr} |
| std::optional<std::string> ugrpc::server::ServiceInfo::full_service_name |
Full gRPC service name in the form package.name.ServiceName.
For generic services, there is no name, and only one middleware instance is created for all RPCs.
| std::string ugrpc::server::ServiceInfo::service_component_name |
| const google::protobuf::ServiceDescriptor* ugrpc::server::ServiceInfo::service_descriptor {nullptr} |
Protobuf descriptor of the service.
For generic services, there is no descriptor.
If request and response messages are defined in a separate .proto file, then there might not be a ServiceDescriptor for a non-generic RPC, see Protobuf issue.