28 #include "qtgrpcglobal.h"
29 #include "qabstractgrpccredentials.h"
32 #include <type_traits>
34 namespace QtProtobuf {
64 template<
typename Call,
typename Channel,
65 typename std::enable_if_t<std::is_base_of<QtProtobuf::QGrpcCallCredentials, Call>::value &&
66 std::is_base_of<QtProtobuf::QGrpcChannelCredentials, Channel>::value,
int> = 0>
86 QGrpcCredentialMap callCredentials()
override {
90 QGrpcCredentialMap channelCredentials()
override {
91 return mChannel.channelCredentials();
105 extern Q_GRPC_EXPORT
const char *SslConfigCredential;
111 template<
typename Call,
typename Channel,
112 typename std::enable_if_t<std::is_base_of<QtProtobuf::QGrpcCallCredentials, Call>::value &&
113 std::is_base_of<QtProtobuf::QGrpcChannelCredentials, Channel>::value,
int> = 0>
114 std::unique_ptr<QtProtobuf::QAbstractGrpcCredentials> operator |(
const Call &call,
const Channel &channel)
120 template<
typename Call,
typename Channel,
121 typename std::enable_if_t<std::is_base_of<QtProtobuf::QGrpcCallCredentials, Call>::value &&
122 std::is_base_of<QtProtobuf::QGrpcChannelCredentials, Channel>::value,
int> = 0>
123 std::unique_ptr<QtProtobuf::QAbstractGrpcCredentials> operator |(
const Channel &channel,
const Call &call)
The QGrpcCallCredentials is base class for gRPC call credentials.
Definition: qgrpccredentials.h:45
The QGrpcChannelCredentials is base class for gRPC channel credentials.
Definition: qgrpccredentials.h:56
The QGrpcCredentials class is combination of call and channel credentials that is used by gRPC channe...
Definition: qgrpccredentials.h:68