Expand description
Daemon lifecycle, locking, and local IPC support.
Structs§
- Bandwidth
Snapshot - Aggregate transfer counters included in a daemon status report.
- Blob
Peer Availability - One blob’s peer availability within a folder.
- Daemon
- Owns the Iroh node, synchronization intents, IPC server, and daemon lifecycle state.
- Daemon
Config - Configuration used to construct and run a daemon.
- Daemon
Handle - Shared daemon state used by the IPC server.
- Daemon
State - Identifying and lifecycle information for a daemon instance.
- Daemon
Status Report - A persisted snapshot of daemon activity and synchronization progress.
- Entry
Row - One row of a metadata-only folder listing returned by the daemon.
- Folder
Entry - A folder managed by the daemon.
- Folder
Registry - Registry of folders and subscriptions currently managed by the daemon.
- Folder
Status - A managed folder summary returned by the daemon. Activity and error information for one managed folder.
- Folder
Status Report - Activity and error information for one managed folder.
- Intent
Supervisor - Starts synchronization intents and restarts failed intents with bounded exponential backoff.
- IpcClient
- A client for sending requests to the daemon.
- IpcListener
- Socket path and binding helper for the daemon.
- IpcRequest
- A request sent over the local daemon control channel.
- IpcServer
- A server for the daemon’s local control channel.
- Managed
Pool - A fixed-size Rayon pool owned by a daemon for CPU-bound archive work.
- Peer
Availability Report - A read-only snapshot of which peers can serve a folder’s blobs and which peers joined the folder.
- Peer
Info - One inbound peer that joined a folder.
- PidLock
- Exclusive process lock preventing multiple daemon instances on the same data directory.
- Schedule
Status - The current schedule state included in a daemon status report.
- State
File - SQLite-backed persistence for daemon state and status.
- Supervised
Intent - A synchronization intent together with the information needed to restart it.
- Transfer
JobSummary - Outcome counters from processing a batch of transfer jobs.
Enums§
- Daemon
Status - The lifecycle state persisted by a running daemon.
- IpcCommand
- Commands supported by the daemon control channel.
- IpcResponse
- A response returned by the daemon control channel.
Functions§
- current_
timestamp - daemon_
client - Return an IPC client only when a lock owner answers a status probe.
- daemon_
socket_ path - Return the socket path used for a data directory.
- pid_
is_ alive - Check whether a process ID is currently present on the local system.
- process_
transfer_ jobs - Fetch and materialize all queued transfer jobs, optionally scoped to a single namespace.
- try_
daemon - Alias for the one-shot command routing check.
- with_
node - Run a node operation with an already-running daemon client.