6 #ifndef TORII_COMMAND_SERVICE_TRANSPORT_GRPC_HPP 7 #define TORII_COMMAND_SERVICE_TRANSPORT_GRPC_HPP 11 #include "endpoint.grpc.pb.h" 12 #include "endpoint.pb.h" 22 class TxStatusFactory;
23 class TransactionBatchParser;
24 class TransactionBatchFactory;
29 :
public iroha::protocol::CommandService_v1::Service {
51 std::shared_ptr<CommandService> command_service,
52 std::shared_ptr<iroha::torii::StatusBus> status_bus,
53 std::shared_ptr<shared_model::interface::TxStatusFactory>
55 std::shared_ptr<TransportFactoryType> transaction_factory,
56 std::shared_ptr<shared_model::interface::TransactionBatchParser>
58 std::shared_ptr<shared_model::interface::TransactionBatchFactory>
59 transaction_batch_factory,
60 int maximum_rounds_without_update,
72 google::protobuf::Empty *response)
override;
82 const iroha::protocol::TxList *request,
83 google::protobuf::Empty *response)
override;
95 const iroha::protocol::TxStatusRequest *request,
96 iroha::protocol::ToriiResponse *response)
override;
108 const iroha::protocol::TxStatusRequest *request,
109 grpc::ServerWriter<iroha::protocol::ToriiResponse>
110 *response_writer)
override;
113 std::shared_ptr<CommandService> command_service_;
114 std::shared_ptr<iroha::torii::StatusBus> status_bus_;
115 std::shared_ptr<shared_model::interface::TxStatusFactory> status_factory_;
116 std::shared_ptr<TransportFactoryType> transaction_factory_;
117 std::shared_ptr<shared_model::interface::TransactionBatchParser>
119 std::shared_ptr<shared_model::interface::TransactionBatchFactory>
123 const int maximum_rounds_without_update_;
127 #endif // TORII_COMMAND_SERVICE_TRANSPORT_GRPC_HPP
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
Definition: command_executor.hpp:14
Definition: application.hpp:79
Definition: command_service_transport_grpc.hpp:36
Status
Definition: status.hpp:12
Definition: application.hpp:100
Definition: transaction.hpp:23
Definition: command_service_transport_grpc.hpp:28