userver: userver/ugrpc/client/channels.hpp File Reference
Loading...
Searching...
No Matches
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.

Namespaces

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

Functions

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.
 
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.
 

Detailed Description

Utilities for managing gRPC connections.

Definition in file channels.hpp.