20#ifndef ORES_COMPUTE_MESSAGING_HOST_PROTOCOL_HPP
21#define ORES_COMPUTE_MESSAGING_HOST_PROTOCOL_HPP
26#include "ores.compute.api/domain/host.hpp"
28namespace ores::compute::messaging {
30struct list_hosts_request {
31 using response_type =
struct list_hosts_response;
32 static constexpr std::string_view nats_subject =
33 "compute.v1.hosts.list";
38struct list_hosts_response {
39 std::vector<ores::compute::domain::host> hosts;
40 int total_available_count = 0;
43struct save_host_request {
44 using response_type =
struct save_host_response;
45 static constexpr std::string_view nats_subject =
46 "compute.v1.hosts.save";
48 std::string change_reason_code;
49 std::string change_commentary;
52struct save_host_response {
57struct delete_host_request {
58 using response_type =
struct delete_host_response;
59 static constexpr std::string_view nats_subject =
60 "compute.v1.hosts.delete";
62 std::string change_reason_code;
63 std::string change_commentary;
66struct delete_host_response {
A registered compute node in the distributed grid.
Definition host.hpp:36