Documentation
¶
Overview ¶
Package watchdog keeps standing watches available when no codeaf terminal is open. The user-facing surfaces describe the consequence; this package owns the deliberately quiet operating-system details.
Index ¶
Constants ¶
const ( // Interval is the cadence promised by the standing-watch ratification. Interval = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LastWakeFunc ¶
LastWakeFunc reads the newest durable wake observation from the graph journal. Keeping this as a callback prevents the OS package from owning or opening the user's brain file.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager installs, removes, and inspects the current user's five-minute timer. It contains no process-local policy state.
func (*Manager) Install ¶
Install writes the exact timer definition and asks the current user's OS to use it immediately. Reinstalling repairs drift and is safe.
type Options ¶
type Options struct {
Platform string
HomeDir string
Executable string
UID int
Runner Runner
LastWake LastWakeFunc
Now func() time.Time
}
Options makes every host-specific input injectable for exact, hermetic tests. Empty values are filled from the current process by New.