Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
kcenon::network::protocols::grpc::service_base Class Referenceabstract

Base class for all gRPC service implementations. More...

#include <service_registry.h>

Inheritance diagram for kcenon::network::protocols::grpc::service_base:
Inheritance graph
Collaboration diagram for kcenon::network::protocols::grpc::service_base:
Collaboration graph

Public Member Functions

virtual ~service_base ()=default
 
virtual auto descriptor () const -> const service_descriptor &=0
 Get the service descriptor.
 
virtual auto is_ready () const -> bool
 Check if this service is ready to handle requests.
 

Detailed Description

Base class for all gRPC service implementations.

This class provides the common interface for gRPC services, whether they are dynamically registered or generated by protoc.

Definition at line 162 of file service_registry.h.

Constructor & Destructor Documentation

◆ ~service_base()

virtual kcenon::network::protocols::grpc::service_base::~service_base ( )
virtualdefault

Member Function Documentation

◆ descriptor()

virtual auto kcenon::network::protocols::grpc::service_base::descriptor ( ) const -> const service_descriptor &
pure virtual

Get the service descriptor.

Returns
Reference to service descriptor

Implemented in kcenon::network::protocols::grpc::generic_service, and kcenon::network::protocols::grpc::health_service.

◆ is_ready()

virtual auto kcenon::network::protocols::grpc::service_base::is_ready ( ) const -> bool
inlinevirtual

Check if this service is ready to handle requests.

Returns
True if service is ready

Definition at line 177 of file service_registry.h.

177{ return true; }

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