macula_bridge_mesh (macula v0.20.5)
View SourceMacula Bridge Mesh - Manages mesh formation with peer bridges.
Bridge Nodes at the same level form their own mesh with a shared DHT. This enables horizontal discovery at each mesh level.
The mesh provides: - Peer bridge discovery via mDNS or explicit configuration - Shared DHT at this level (queries can be answered by any bridge) - Load balancing for query handling - Redundancy if one bridge fails
Summary
Functions
Add a peer bridge to the mesh.
Broadcast message to all peer bridges.
Get list of connected peer bridges.
Get mesh statistics.
Query a specific peer bridge.
Remove a peer bridge from the mesh.
Start bridge mesh with registered name.
Types
-type peer_info() :: #{endpoint => binary(), connected_at => integer(), last_seen => integer(), queries_handled => non_neg_integer()}.
Functions
Add a peer bridge to the mesh.
Broadcast message to all peer bridges.
Get list of connected peer bridges.
Get mesh statistics.
Query a specific peer bridge.
Remove a peer bridge from the mesh.
Start bridge mesh with registered name.