Skip to main content

bootstrap

Function bootstrap 

Source
pub fn bootstrap(config: DaemonConfig) -> Result<BootstrapState, BootstrapError>
Expand description

Bootstrap entry point.

Validates configuration and assembles runtime dependencies. This function is deterministic and does not start background loops or bind network sockets.

§Errors

Returns BootstrapError::Config if configuration validation fails. Returns BootstrapError::WalInit if WAL file initialization fails.

§Examples

use actionqueue_daemon::bootstrap::bootstrap;
use actionqueue_daemon::config::DaemonConfig;

let config = DaemonConfig::default();
let state = bootstrap(config).expect("bootstrap should succeed");