macula_mesh (faber_neuroevolution v1.2.4)
View SourceMacula mesh integration facade.
Provides a unified API for interacting with the Macula mesh platform. Handles: - Service advertisement (register as evaluator) - RPC requests (distributed evaluation) - Pub/Sub (signal broadcasting) - DHT operations (service discovery)
When macula is not available (no MACULA_MESH_ENABLED define), operations gracefully degrade to local-only mode.
Summary
Functions
-spec advertise_evaluator(EvaluatorModule :: module(), Capacity :: pos_integer()) -> ok | {error, term()}.
-spec get_state() -> map().
-spec is_mesh_available() -> boolean().