Skip to main content

Module socket

Module socket 

Source
Expand description

Unix socket protocol for daemon-CLI communication. Uses JSON over unix stream sockets, with each message as a single line.

Structs§

HealthInfo
Snapshot of daemon health, returned by the health socket command.
ReaderHealth
Health info for a single reader task (index-aligned with FsGroup).

Enums§

ErrorKind
Classifies whether an error is permanent (will persist after daemon restart) or transient (runtime issue, will work after restart).
SocketCmd
Type-safe socket commands.
SocketError
Type-safe socket errors.
SocketResponse
Type-safe socket responses.

Functions§

send_cmd
Send a command to the running daemon and get the response.