TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
Loading...
Searching...
No Matches
tec::grpc_server_traits< TService, TGrpcServer, TGrpcServerBuilder, TGrpcServerCredentials, TGrpcCompressionAlgorithm, TGrpcCompressionLevel > Struct Template Reference

Type traits / type aliases collection for configuring a gRPC server. More...

#include <tec_grpc_server.hpp>

Public Types

typedef TService Service
 gRPC service implementation type
 
typedef TGrpcServer RpcServer
 running gRPC server instance type
 
typedef TGrpcServerBuilder Builder
 server builder type
 
typedef TGrpcServerCredentials Credentials
 server-side credentials type
 
typedef TGrpcCompressionAlgorithm CompressionAlgorithm
 supported compression algorithms enum
 
typedef TGrpcCompressionLevel CompressionLevel
 compression level enum
 

Detailed Description

template<typename TService, typename TGrpcServer, typename TGrpcServerBuilder, typename TGrpcServerCredentials, typename TGrpcCompressionAlgorithm, typename TGrpcCompressionLevel>
struct tec::grpc_server_traits< TService, TGrpcServer, TGrpcServerBuilder, TGrpcServerCredentials, TGrpcCompressionAlgorithm, TGrpcCompressionLevel >

Type traits / type aliases collection for configuring a gRPC server.

Groups and aliases all gRPC-related types used by a particular GrpcServer instantiation, allowing clean decoupling between the server implementation and the concrete gRPC service/server/builder/credentials types.

Template Parameters
TServiceThe generated gRPC service class (e.g. MyService)
TGrpcServerServer type (usually grpc::Server)
TGrpcServerBuilderServer builder type (usually grpc::ServerBuilder)
TGrpcServerCredentialsServer credentials type (usually grpc::ServerCredentials)
TGrpcCompressionAlgorithmCompression algorithm enum (usually grpc::CompressionAlgorithm)
TGrpcCompressionLevelCompression level enum (usually grpc::CompressionLevel)

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