20#ifndef ORES_VARIABILITY_MESSAGING_SYSTEM_SETTINGS_PROTOCOL_HPP
21#define ORES_VARIABILITY_MESSAGING_SYSTEM_SETTINGS_PROTOCOL_HPP
26#include "ores.variability.api/domain/system_setting.hpp"
28namespace ores::variability::messaging {
34struct list_settings_request {
35 using response_type =
struct list_settings_response;
36 static constexpr std::string_view nats_subject =
37 "variability.v1.settings.list";
40struct list_settings_response {
41 std::vector<ores::variability::domain::system_setting> settings;
48struct save_setting_request {
49 using response_type =
struct save_setting_response;
50 static constexpr std::string_view nats_subject =
51 "variability.v1.settings.save";
55 return { .data = std::move(s) };
59struct save_setting_response {
68struct delete_setting_request {
69 using response_type =
struct delete_setting_response;
70 static constexpr std::string_view nats_subject =
71 "variability.v1.settings.delete";
75struct delete_setting_response {
77 std::string error_message;
84struct get_setting_history_request {
85 using response_type =
struct get_setting_history_response;
86 static constexpr std::string_view nats_subject =
87 "variability.v1.settings.history";
91struct get_setting_history_response {
94 std::vector<ores::variability::domain::system_setting> history;
Represents a typed system setting in the domain layer.
Definition system_setting.hpp:35