daemon

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WritePID  = udsrpc.WritePID
	ReadPID   = udsrpc.ReadPID
	IsRunning = udsrpc.IsRunning
	RemovePID = udsrpc.RemovePID
)

PID file helpers come from the shared go-uds-jsonrpc library, which handles the Unix (signal-0 probe) and Windows (OpenProcess) implementations behind build tags. Re-exported so daemon.WritePID/IsRunning/etc. keep working for callers in main.go.

Functions

This section is empty.

Types

type Daemon

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

Daemon is the long-running background process that manages email connections, caching, sync, and notifications.

func New

func New(cfg *config.Config) *Daemon

New creates a daemon with the given config.

func (*Daemon) ReloadConfig

func (d *Daemon) ReloadConfig() error

ReloadConfig reloads the configuration from disk.

func (*Daemon) Run

func (d *Daemon) Run() error

Run starts the daemon: creates providers, starts the socket listener, starts background sync, and blocks until shutdown.

func (*Daemon) Shutdown

func (d *Daemon) Shutdown()

Shutdown triggers a graceful shutdown.

type OutboxEntry added in v0.41.0

type OutboxEntry struct {
	ID     string
	Params daemonrpc.SendEmailParams
	SendAt time.Time
}

Jump to

Keyboard shortcuts

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