Versions in this module Expand all Collapse all v0 v0.4.2 Jul 22, 2025 v0.4.1 Jul 19, 2025 v0.4.0 Jul 12, 2025 v0.3.1 Jul 9, 2025 v0.3.0 Jul 9, 2025 v0.2.0 Jul 4, 2025 v0.1.3 Jun 29, 2025 v0.1.2 Jun 29, 2025 v0.1.1 Jun 28, 2025 v0.1.0 Jun 26, 2025 Changes in this version + type ComprehensiveStatus struct + Config *DaemonConfigStatus + Daemon *DaemonStatus + Service *ServiceStatus + type Daemon struct + func NewDaemon(cfg *config.Config) (*Daemon, error) + func (d *Daemon) GetStatus() *DaemonStatus + func (d *Daemon) Start() error + func (d *Daemon) Stop() error + type DaemonConfigStatus struct + AutoStart bool + LogFile string + LogLevel string + PIDFile string + SyncInterval time.Duration + SystemService bool + type DaemonStatus struct + AutoStart bool + ErrorCount int64 + LastSync time.Time + PID int + Running bool + SyncCount int64 + SyncInterval time.Duration + SystemService bool + Uptime time.Duration + type Manager struct + func NewManager(cfg *config.Config) *Manager + func (m *Manager) Close() error + func (m *Manager) GetStatus() (*ComprehensiveStatus, error) + func (m *Manager) InstallSystemService() error + func (m *Manager) IsAutoStartNeeded() bool + func (m *Manager) RemoveSystemService() error + func (m *Manager) RestartDaemon() error + func (m *Manager) SetupBackgroundSync() error + func (m *Manager) StartDaemon() error + func (m *Manager) StopDaemon() error + func (m *Manager) TriggerAutoStart() error + type PIDManager struct + func NewPIDManager(pidFile string) *PIDManager + func (pm *PIDManager) CleanupStalePIDFile() error + func (pm *PIDManager) GetPIDFile() string + func (pm *PIDManager) GetStatus() (*PIDStatus, error) + func (pm *PIDManager) IsProcessRunning(pid int) bool + func (pm *PIDManager) IsRunning() bool + func (pm *PIDManager) KillDaemon() error + func (pm *PIDManager) ReadPID() (int, error) + func (pm *PIDManager) RemovePID() error + func (pm *PIDManager) ValidatePIDFile() error + func (pm *PIDManager) WritePID() error + type PIDStatus struct + Error string + PID int + PIDFile string + Running bool + StartTime time.Time + Uptime time.Duration + type ServiceManager struct + func NewServiceManager(cfg *config.Config) *ServiceManager + func (sm *ServiceManager) CreateSystemService() error + func (sm *ServiceManager) GetServiceStatus() (*ServiceStatus, error) + func (sm *ServiceManager) IsSystemServiceInstalled() bool + func (sm *ServiceManager) RemoveSystemService() error + func (sm *ServiceManager) RestartSystemService() error + func (sm *ServiceManager) StartSystemService() error + func (sm *ServiceManager) StopSystemService() error + type ServiceStatus struct + Enabled bool + Installed bool + Platform string + Running bool