userver: ugrpc::server::ServiceComponentBase Class Reference
Loading...
Searching...
No Matches
ugrpc::server::ServiceComponentBase Class Reference

#include <userver/ugrpc/server/service_component_base.hpp>

Detailed Description

Base class for all the gRPC service components.

Static options:

Name Description Default value
task-processor the task processor to use for responses taken from grpc-server.service-defaults
middlewares middleware component names to use for each RPC call, can be empty array ([]) taken from grpc-server.service-defaults

Definition at line 34 of file service_component_base.hpp.

+ Inheritance diagram for ugrpc::server::ServiceComponentBase:
+ Collaboration diagram for ugrpc::server::ServiceComponentBase:

Public Member Functions

 ServiceComponentBase (const components::ComponentConfig &config, const components::ComponentContext &context)
 
- Public Member Functions inherited from components::LoggableComponentBase
 LoggableComponentBase (const ComponentConfig &, const ComponentContext &)
 
 LoggableComponentBase (LoggableComponentBase &&)=delete
 
 LoggableComponentBase (const LoggableComponentBase &)=delete
 
 ~LoggableComponentBase () override=default
 
ComponentHealth GetComponentHealth () const override
 
void OnLoadingCancelled () override
 
void OnAllComponentsLoaded () override
 
void OnAllComponentsAreStopping () override
 

Static Public Member Functions

static yaml_config::Schema GetStaticConfigSchema ()
 
- Static Public Member Functions inherited from components::LoggableComponentBase
static yaml_config::Schema GetStaticConfigSchema ()
 

Protected Member Functions

void RegisterService (ServiceBase &service)
 

Member Function Documentation

◆ RegisterService()

void ugrpc::server::ServiceComponentBase::RegisterService ( ServiceBase & service)
protected

Derived classes must store the actual service class in a field and call RegisterService with it


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