Github   Telegram
No Matches
Namespaces | Functions
channels.hpp File Reference

Utilities for managing gRPC connections. More...

#include <grpcpp/channel.h>
#include <grpcpp/completion_queue.h>
#include <grpcpp/security/credentials.h>
#include <userver/engine/deadline.hpp>
#include <userver/engine/task/task_processor_fwd.hpp>
#include <userver/ugrpc/client/impl/client_data.hpp>
+ Include dependency graph for channels.hpp:

Go to the source code of this file.


namespace  ugrpc
 Asynchronous gRPC driver.
namespace  ugrpc::client
 Client-side utilities.


std::shared_ptr< grpc::Channel > ugrpc::client::MakeChannel (engine::TaskProcessor &blocking_task_processor, std::shared_ptr< grpc::ChannelCredentials > channel_credentials, const std::string &endpoint)
 Create a new gRPC channel (connection pool) for the endpoint. More...
template<typename Client >
bool ugrpc::client::TryWaitForConnected (Client &client, engine::Deadline deadline, engine::TaskProcessor &blocking_task_processor)
 Wait until the channel state of client is READY. If the current state is already READY, returns true immediately. In case of multiple underlying channels, waits for all of them. More...

Detailed Description

Utilities for managing gRPC connections.

Definition in file channels.hpp.