hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
status_bus.hpp
Go to the documentation of this file.
1 
6 #ifndef TORII_STATUS_BUS
7 #define TORII_STATUS_BUS
8 
9 #include <rxcpp/rx.hpp>
11 
12 namespace iroha {
13  namespace torii {
17  class StatusBus {
18  public:
19  virtual ~StatusBus() = default;
20 
22  using Objects =
23  std::shared_ptr<shared_model::interface::TransactionResponse>;
24 
30  virtual void publish(Objects) = 0;
31 
35  virtual rxcpp::observable<Objects> statuses() = 0;
36  };
37  } // namespace torii
38 } // namespace iroha
39 
40 #endif // TORII_STATUS_BUS
Definition: command_client.hpp:16
std::shared_ptr< shared_model::interface::TransactionResponse > Objects
Objects that represent status to operate with.
Definition: status_bus.hpp:23
virtual ~StatusBus()=default
virtual rxcpp::observable< Objects > statuses()=0
Definition: block_query.hpp:16
Definition: status_bus.hpp:17
virtual void publish(Objects)=0