hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
torii::CommandSyncClient Class Reference

#include "command_client.hpp"

Collaboration diagram for torii::CommandSyncClient:
Collaboration graph

Public Member Functions

 CommandSyncClient (std::unique_ptr< iroha::protocol::CommandService_v1::StubInterface > stub, logger::LoggerPtr log)
 
grpc::Status Torii (const iroha::protocol::Transaction &tx) const
 
grpc::Status ListTorii (const iroha::protocol::TxList &tx_list) const
 
grpc::Status Status (const iroha::protocol::TxStatusRequest &tx, iroha::protocol::ToriiResponse &response) const
 
void StatusStream (const iroha::protocol::TxStatusRequest &tx, std::vector< iroha::protocol::ToriiResponse > &response) const
 

Detailed Description

Constructor & Destructor Documentation

torii::CommandSyncClient::CommandSyncClient ( std::unique_ptr< iroha::protocol::CommandService_v1::StubInterface >  stub,
logger::LoggerPtr  log 
)

Member Function Documentation

grpc::Status torii::CommandSyncClient::ListTorii ( const iroha::protocol::TxList &  tx_list) const

requests list of txs to a torii server and returns response

Parameters
tx_list
Returns
grpc::Status - returns connection is success or not.
grpc::Status torii::CommandSyncClient::Status ( const iroha::protocol::TxStatusRequest &  tx,
iroha::protocol::ToriiResponse &  response 
) const
Parameters
tx
responsereturns ToriiResponse if succeeded
Returns
grpc::Status - returns connection is success or not.

Here is the caller graph for this function:

void torii::CommandSyncClient::StatusStream ( const iroha::protocol::TxStatusRequest &  tx,
std::vector< iroha::protocol::ToriiResponse > &  response 
) const

Acquires stream of transaction statuses from the request moment until final.

Parameters
tx- transaction to send.
response- vector of all statuses during tx pipeline.

Here is the call graph for this function:

grpc::Status torii::CommandSyncClient::Torii ( const iroha::protocol::Transaction &  tx) const

requests tx to a torii server and returns response (blocking, sync)

Parameters
tx
Returns
grpc::Status - returns connection is success or not.

Here is the caller graph for this function:


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