Skip to main content

Module daemon

Module daemon 

Source
Expand description

Hot in-memory daemon lifecycle and client dispatch.

Structs§

Client
EventHub
Fan-out hub for connected event listeners.

Enums§

Notice
Line-delimited JSON notice written to .daemon/events.sock.
Request
Response

Functions§

client_flush
daemon_dir
ensure_running
Start the daemon if it is not already running (Gradle-style invocation).
events_socket_path
Outbound notices for mailbox/event wakeup (Jan cron listens here).
flush
Flush dirty in-memory state to disk via the running daemon.
is_running
Whether a hot daemon is running for this store root.
ok_empty
pid_path
ping
read_pid
response_found
response_messages
response_ok
response_uuid
response_value
run_server
shutdown
socket_path
start
Start the hot daemon. With foreground, blocks in the current process (for tests).
status
Print daemon status to stdout.
stop
Stop the daemon, flushing dirty state first.
subscribe
Connect to the daemon event socket for wakeup notices.
watch
Print notices from the event socket until the daemon disconnects.