package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Jun 9, 2026
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
IsStale checks whether the PID in the lockfile is still alive.
Path returns the lockfile path for the given project.
Remove deletes the lockfile from disk.
Write persists a lockfile to disk, creating parent dirs as needed.
Config controls daemon behavior.
type LockFile struct {
Port int `json:"port"`
Token string `json:"token"`
PID int `json:"pid"`
}
LockFile is written to disk so clients can discover a running daemon.
Read loads a lockfile from disk.
Server is the HTTP+SSE daemon.
Serve starts the HTTP server and blocks until ctx is cancelled or a
signal is received. It writes a lockfile on startup and removes it
on shutdown.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.