hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::network::ChannelProvider Class Referenceabstract

#include "channel_provider.hpp"

Inheritance diagram for iroha::network::ChannelProvider:
Inheritance graph
Collaboration diagram for iroha::network::ChannelProvider:
Collaboration graph

Public Member Functions

virtual ~ChannelProvider ()=default
 
virtual iroha::expected::Result< std::shared_ptr< grpc::Channel >, std::string > getChannel (const std::string &service_full_name, const shared_model::interface::Peer &peer)=0
 

Constructor & Destructor Documentation

◆ ~ChannelProvider()

virtual iroha::network::ChannelProvider::~ChannelProvider ( )
virtualdefault

Member Function Documentation

◆ getChannel()

virtual iroha::expected::Result<std::shared_ptr<grpc::Channel>, std::string> iroha::network::ChannelProvider::getChannel ( const std::string &  service_full_name,
const shared_model::interface::Peer peer 
)
pure virtual

Get or create a grpc::Channel (from a pool of channels)

Parameters
service_full_namethe full name of grpc service, e.g. iroha.consensus.yac.proto.Yac
peerthe target peer
Returns
std::shared_ptr<grpc::Channel> to that address

Implemented in iroha::network::ChannelFactory, and iroha::network::ChannelPool.


The documentation for this class was generated from the following file: