TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
Loading...
Searching...
No Matches
tec::grpc_client_traits< TService, TGrpcChannel, TGrpcClientCredentials, TGrpcChannelArguments, TGrpcCompressionAlgorithm > Struct Template Reference

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

#include <tec_grpc_client.hpp>

Public Types

typedef TService Service
 gRPC service stub type
 
typedef TGrpcChannel Channel
 gRPC channel type
 
typedef TGrpcClientCredentials Credentials
 credentials factory type
 
typedef TGrpcChannelArguments Arguments
 channel creation arguments
 
typedef TGrpcCompressionAlgorithm CompressionAlgorithm
 supported compression algorithms enum
 

Detailed Description

template<typename TService, typename TGrpcChannel, typename TGrpcClientCredentials, typename TGrpcChannelArguments, typename TGrpcCompressionAlgorithm>
struct tec::grpc_client_traits< TService, TGrpcChannel, TGrpcClientCredentials, TGrpcChannelArguments, TGrpcCompressionAlgorithm >

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

This structure is used to group and alias all the gRPC-related types that a particular GrpcClient instantiation will use. It allows clean decoupling between the client implementation and the concrete gRPC service/channel/credentials types.

Template Parameters
TServiceThe generated gRPC service class (e.g. MyService::Stub)
TGrpcChannelChannel type (usually grpc::Channel)
TGrpcClientCredentialsCredentials type (usually grpc::ChannelCredentials)
TGrpcChannelArgumentsChannel creation arguments (usually grpc::ChannelArguments)
TGrpcCompressionAlgorithmCompression algorithm enum (usually grpc::CompressionAlgorithm)

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