Documentation
¶
Overview ¶
Package statefile reads and writes the small JSON state files in the dev-cockpit state directory. Reads go through the file on every call and writes are atomic via a temp file rename, so several processes sharing a state dir stay consistent and a fresh process picks up the latest values. A file that exists but does not parse is quarantined as <path>.broken and treated as absent, so a later save can never silently overwrite state that is still recoverable from the broken file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.