Versions in this module Expand all Collapse all v1 v1.2.2 Jan 27, 2026 Changes in this version + const PIDFileName + const StateFileName + type Daemon struct + func New(configDir, version string) *Daemon + func (d *Daemon) Cleanup() + func (d *Daemon) Daemonize(args []string) (bool, error) + func (d *Daemon) IsRunning() bool + func (d *Daemon) KillAll() (int, error) + func (d *Daemon) ListProcesses() ([]ProcessInfo, error) + func (d *Daemon) PIDPath() string + func (d *Daemon) ReadPID() (int, error) + func (d *Daemon) ReadState() (*State, error) + func (d *Daemon) RemovePID() error + func (d *Daemon) RemoveState() error + func (d *Daemon) Start(restEnabled bool, restHost string, restPort int, mcpEnabled bool) error + func (d *Daemon) StatePath() string + func (d *Daemon) Status() *Status + func (d *Daemon) Stop() error + func (d *Daemon) WritePID() error + func (d *Daemon) WriteState(state *State) error + type ProcessInfo struct + PID int + Type string + Uptime time.Duration + Version string + type State struct + MCPEnabled bool + PID int + RESTEnabled bool + RESTHost string + RESTPort int + StartTime time.Time + Version string + type Status struct + MCPEnabled bool + PID int + RESTEnabled bool + RESTHost string + RESTPort int + Running bool + Uptime time.Duration + Version string