Documentation
¶
Overview ¶
Package heartbeat reads and writes mtime values for session heartbeat tracking.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadMtime ¶
ReadMtime reads a stored mtime value from a file. Returns 0 if the file does not exist or the content cannot be parsed as an integer.
Parameters:
- path: absolute path to the mtime state file
Returns:
- int64: the stored mtime value, or 0 on error
func WriteMtime ¶
WriteMtime writes a mtime value to a file. Errors are silently ignored (best-effort state persistence).
Parameters:
- path: absolute path to the mtime state file
- mtime: the mtime value to store
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.