A copyable interface to manage a connection to a gRPC server.
More...
#include <grpc.hpp>
|
| Connection (const std::string &uri, const std::shared_ptr<::grpc::ChannelCredentials > &credentials=::grpc::InsecureChannelCredentials()) |
|
| Connection (std::shared_ptr<::grpc::Channel > _channel) |
|
|
const std::shared_ptr<::grpc::Channel > | channel |
|
A copyable interface to manage a connection to a gRPC server.
All Connection
copies share the same gRPC channel which is thread safe. Note that the actual connection is established lazily by the gRPC library at the time an RPC is made to the channel.
process::grpc::client::Connection::Connection |
( |
const std::string & |
uri, |
|
|
const std::shared_ptr<::grpc::ChannelCredentials > & |
credentials = ::grpc::InsecureChannelCredentials() |
|
) |
| |
|
inline |
process::grpc::client::Connection::Connection |
( |
std::shared_ptr<::grpc::Channel > |
_channel | ) |
|
|
inlineexplicit |
const std::shared_ptr<::grpc::Channel> process::grpc::client::Connection::channel |
The documentation for this class was generated from the following file:
- 3rdparty/libprocess/include/process/grpc.hpp