refactor: simplify endpoint and capabilities

This commit is contained in:
2025-09-13 19:15:07 +02:00
parent 12caeb0be6
commit 72b559e047
18 changed files with 1055 additions and 40 deletions

View File

@@ -4,6 +4,7 @@
#include <vector>
#include <tuple>
#include <map>
#include "ApiTypes.h"
struct NodeInfo {
String hostname;
@@ -18,7 +19,7 @@ struct NodeInfo {
uint32_t flashChipSize = 0;
} resources;
unsigned long latency = 0; // ms since lastSeen
std::vector<std::tuple<String, int>> apiEndpoints; // List of registered endpoints
std::vector<EndpointInfo> endpoints; // List of registered endpoints
std::map<String, String> labels; // Arbitrary node labels (key -> value)
};