#include <userver/ugrpc/server/service_component_base.hpp>
Base class for all the gRPC service components.
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.
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) |
|
protected |
Derived classes must store the actual service class in a field and call RegisterService with it