20 lines
566 B
Rust
20 lines
566 B
Rust
//! Process-supervision primitives for the xy daemon.
|
|
|
|
pub mod backoff;
|
|
pub mod child;
|
|
pub mod logs;
|
|
pub mod policy;
|
|
mod ready;
|
|
pub mod retry_window;
|
|
pub mod supervisor;
|
|
|
|
pub use backoff::Backoff;
|
|
pub use child::{ChildHandle, MockChild, MockChildController, RealChild, spawn_with_logs};
|
|
pub use logs::{LogSink, RecordedLine, RingBuffer, RotatingLogWriter};
|
|
pub use policy::{RestartDecision, decide};
|
|
pub use retry_window::RetryWindow;
|
|
pub use supervisor::{
|
|
RealSpawner, Spawner, StartAck, Status, StopAck, SupervisorCmd, SupervisorHandle,
|
|
SupervisorTask,
|
|
};
|