userver: ugrpc::server::ServiceInfo Struct Reference
Loading...
Searching...
No Matches
ugrpc::server::ServiceInfo Struct Referencefinal

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

Detailed Description

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}
 

Member Data Documentation

◆ full_service_name

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.

Definition at line 51 of file base.hpp.

◆ service_component_name

std::string ugrpc::server::ServiceInfo::service_component_name

Name of the service component for which the middlewares are being instantiated.

Definition at line 45 of file base.hpp.

◆ service_descriptor

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.

Definition at line 60 of file base.hpp.


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