The QAbstractGrpcClient class is bridge between gRPC clients and channels.
More...
#include <qabstractgrpcclient.h>
|
void | error (const QGrpcStatus &status) |
| error signal is emited by client when error occured in channel or while serialization/deserialization More...
|
|
|
class | QGrpcAsyncOperationBase |
|
The QAbstractGrpcClient class is bridge between gRPC clients and channels.
QAbstractGrpcClient provides set of bridge functions for client classes generated out of protobuf services.
QAbstractGrpcClient provides threads safety for subscribe and call methods of generated clients.
◆ attachChannel()
Attaches channel to client as transport layer for gRPC.
Parameters and return values will be serialized to supported by channel format.
- Note
- Warning: QtGrpc doesn't guarantie thread safety on channel level. You have to be confident that channel routines are working in the same thread as QAbstractGrpcClient.
- See also
- QAbstractGrcpChannel
- Parameters
-
channel | Shared pointer to channel will be used as transport layer for gRPC |
◆ cancel()
void QtProtobuf::QAbstractGrpcClient::cancel |
( |
const QString & |
method | ) |
|
|
protected |
Canceles all subscriptions for specified method
.
- Parameters
-
[in] | method | Name of method subscription for to be canceled |
◆ error
void QtProtobuf::QAbstractGrpcClient::error |
( |
const QGrpcStatus & |
status | ) |
|
|
signal |
error signal is emited by client when error occured in channel or while serialization/deserialization
- Parameters
-
[out] | code | gRPC channel StatusCode |
[out] | errorText | Error description from channel or from QGrpc |
◆ serializer()
serializer provides assigned to client serializer
- Returns
- pointer to serializer. Serializer is owned by QtProtobuf::QProtobufSerializerRegistry.
The documentation for this class was generated from the following files:
- /home/semlanik/Projects/qtprotobuf/src/grpc/qabstractgrpcclient.h
- /home/semlanik/Projects/qtprotobuf/src/grpc/qabstractgrpcclient.cpp