forge-core 0.10.0

Core types and traits for the Forge framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Cluster coordination and node management.
//!
//! Nodes discover each other via PostgreSQL (`forge_nodes` table, heartbeat-based).
//! Singleton processes (scheduler, daemons) use advisory locks for leader election:
//! if the leader crashes, PostgreSQL releases the lock and a standby node acquires it.

mod node;
mod roles;
mod traits;

pub use node::{NodeId, NodeInfo, NodeStatus, ParseNodeStatusError};
pub use roles::{LeaderRole, NodeRole, ParseLeaderRoleError, ParseNodeRoleError};
pub use traits::{ClusterInfo, LeaderInfo};