41 inline static std::string_view logger_name =
42 "ores.risk.messaging.risk_message_handler";
46 static auto instance = make_logger(logger_name);
58 std::shared_ptr<variability::service::system_flags_service> system_flags);
68 boost::asio::awaitable<std::expected<std::vector<std::byte>, comms::messaging::error_code>>
70 std::span<const std::byte> payload,
71 const std::string& remote_address)
override;
77 boost::asio::awaitable<std::expected<std::vector<std::byte>, comms::messaging::error_code>>
78 handle_get_currencies_request(std::span<const std::byte> payload);
87 boost::asio::awaitable<std::expected<std::vector<std::byte>, comms::messaging::error_code>>
88 handle_save_currency_request(std::span<const std::byte> payload);
93 boost::asio::awaitable<std::expected<std::vector<std::byte>, comms::messaging::error_code>>
94 handle_delete_currency_request(std::span<const std::byte> payload);
99 boost::asio::awaitable<std::expected<std::vector<std::byte>, comms::messaging::error_code>>
100 handle_get_currency_history_request(std::span<const std::byte> payload);
103 std::shared_ptr<variability::service::system_flags_service> system_flags_;
boost::asio::awaitable< std::expected< std::vector< std::byte >, comms::messaging::error_code > > handle_message(comms::messaging::message_type type, std::span< const std::byte > payload, const std::string &remote_address) override
Handle a risk subsystem message.
Definition risk_message_handler.cpp:34