Documentation
¶
Overview ¶
Package daemon manages yaad's background server lifecycle: PID file tracking, health checks, and auto-start logic.
Index ¶
- Constants
- func EnsureRunning(projectDir, addr string) error
- func HealthCheck(addr string) error
- func IsRunning(projectDir string) bool
- func PIDFile(projectDir string) string
- func ReadPID(projectDir string) int
- func RemovePID(projectDir string)
- func Stop(projectDir string) error
- func WritePID(projectDir string) error
Constants ¶
View Source
const (
DefaultAddr = ":3456"
)
Variables ¶
This section is empty.
Functions ¶
func EnsureRunning ¶
EnsureRunning checks health; if yaad is not running, launches it as a daemon. Returns the addr the server is (or will be) listening on.
func HealthCheck ¶
HealthCheck pings the yaad health endpoint. Returns nil if healthy. addr can be ":port", "host:port", or a full "http://host:port" URL.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.