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 Types

using Service = iroha::protocol::CommandService_v1
 

Public Member Functions

 CommandSyncClient (std::shared_ptr< Service::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

Member Typedef Documentation

◆ Service

using torii::CommandSyncClient::Service = iroha::protocol::CommandService_v1

Constructor & Destructor Documentation

◆ CommandSyncClient()

torii::CommandSyncClient::CommandSyncClient ( std::shared_ptr< Service::StubInterface >  stub,
logger::LoggerPtr  log 
)

Member Function Documentation

◆ ListTorii()

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.

◆ Status()

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:

◆ StatusStream()

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:

◆ Torii()

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: