macula_bridge_system (macula v0.20.5)
View SourceMacula Bridge System - Supervision tree for Bridge Nodes.
Bridge Nodes provide: - Connection to parent mesh level (street to neighborhood to city to etc.) - DHT query escalation when local DHT misses - Mesh formation with other Bridge Nodes at the same level - Result caching from parent queries
Summary
Functions
Get Bridge Node PID.
Get Bridge Mesh PID.
Get bridge system statistics.
Check if bridge functionality is enabled.
Start bridge system supervisor. Config should include: - parent_bridges: list of parent bridge endpoints (required for escalation) - mesh_level: atom indicating level (cluster, street, neighborhood, city, etc.) - bridge_enabled: boolean to enable/disable bridge functionality
Functions
-spec get_bridge_pid() -> {ok, pid()} | {error, not_started}.
Get Bridge Node PID.
-spec get_mesh_pid() -> {ok, pid()} | {error, not_started}.
Get Bridge Mesh PID.
Get bridge system statistics.
-spec is_bridge_enabled() -> boolean().
Check if bridge functionality is enabled.
Start bridge system supervisor. Config should include: - parent_bridges: list of parent bridge endpoints (required for escalation) - mesh_level: atom indicating level (cluster, street, neighborhood, city, etc.) - bridge_enabled: boolean to enable/disable bridge functionality