2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef MQTTBROKER_LIB_MAPPINGADMINROUTER_H
43#define MQTTBROKER_LIB_MAPPINGADMINROUTER_H
49#include <express/Router.h>
51#ifndef DOXYGEN_SHOULD_SKIP_THIS
64 std::string
realm{
"mqttsuite-admin"};
std::string getMappingFilename() const
const std::shared_ptr< MqttMapper > getMqttMapper() const
bool setMapping(const nlohmann::json &json)
static nlohmann::json deployDraft(const std::string &mapFilePath)
static nlohmann::json rollbackTo(const std::string &mapFilePath, const std::string &versionId)
static std::vector< VersionEntry > getHistory(const std::string &mapFilePath)
static std::string getDraftPath(const std::string &mapFilePath)
static void saveDraft(const std::string &mapFilePath, const nlohmann::json &content)
static const nlohmann::json validate(const nlohmann::json &json, nlohmann::json_schema::basic_error_handler &err)
const nlohmann::json & getMapping() const
static const std::string & getSchema()
express::Router makeMappingAdminRouter(ConfigApplication *configApplication, const AdminOptions &opt, ReloadCallback onDeploy)
std::function< ReloadResult(bool)> ReloadCallback