heartbeat

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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

func ReadMtime(path string) int64

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

func WriteMtime(path string, mtime int64)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL