clboss/Boss/Msg/AvailableRpcCommands.hpp
ZmnSCPxj jxPCSnmZ ddc4c707d8 Boss/Mod/AvailableRpcCommandsAnnouncer.cpp: New module to announce the commands found on this node.
This will allow CLBOSS to figure out what commands (and parameters) the
specific C-Lightning node being managed has, and adapt accordingly.
2022-05-04 00:34:22 +00:00

27 lines
601 B
C++

#ifndef BOSS_MSG_AVAILABLERPCCOMMANDS_HPP
#define BOSS_MSG_AVAILABLERPCCOMMANDS_HPP
#include<map>
#include<string>
namespace Boss { namespace Msg {
/** struct Boss::Msg::AvailableRpcCommands
*
* @brief Broadcast at startup, containing the commands
* available on the managed C-Lightning node, plus the
* usage of the commands.
*/
struct AvailableRpcCommands {
struct Desc {
std::string category;
/*~ Does not include command name. */
std::string usage;
};
/*~ Key is the command name. */
std::map<std::string, Desc> commands;
};
}}
#endif /* BOSS_MSG_AVAILABLERPCCOMMANDS_HPP */