daemon

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonManager

type DaemonManager struct {
	// contains filtered or unexported fields
}

DaemonManager manages all background daemons

func NewDaemonManager

func NewDaemonManager(
	pool *concurrency.WorkerPool,
	lm *lifecycle.Manager,
	store *persistence.Store,
) *DaemonManager

NewDaemonManager creates a new daemon manager

func (*DaemonManager) SetIntervals

func (dm *DaemonManager) SetIntervals(
	decay, consolidate, prune, persist, reorg time.Duration,
)

SetIntervals configures daemon intervals

func (*DaemonManager) Start

func (dm *DaemonManager) Start()

Start starts all daemon workers

func (*DaemonManager) Stats

func (dm *DaemonManager) Stats() map[string]any

Stats returns daemon statistics

func (*DaemonManager) Stop

func (dm *DaemonManager) Stop()

Stop stops all daemons gracefully

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL