feat: add labels to NodeInfo

This commit is contained in:
2025-08-29 13:30:08 +02:00
parent f8e5a9c66f
commit d3a9802ec9
7 changed files with 67 additions and 12 deletions

View File

@@ -3,6 +3,7 @@
#include <IPAddress.h>
#include <vector>
#include <tuple>
#include <map>
struct NodeInfo {
String hostname;
@@ -18,6 +19,7 @@ struct NodeInfo {
} resources;
unsigned long latency = 0; // ms since lastSeen
std::vector<std::tuple<String, int>> apiEndpoints; // List of registered endpoints
std::map<String, String> labels; // Arbitrary node labels (key -> value)
};
const char* statusToStr(NodeInfo::Status status);