daemon

package
v1.1.0-solo.4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureRunning

func EnsureRunning(root string) error

EnsureRunning starts the daemon and waits until it is accepting events.

func PersonalSyncReady

func PersonalSyncReady(dir string) bool

PersonalSyncReady identifies support in the running daemon, rather than assuming a newly installed CLI has replaced an older resident process.

func ProcessIsTraceDaemon

func ProcessIsTraceDaemon(pid int, root string) bool

ProcessIsTraceDaemon guards against signalling a recycled PID from a stale daemon.pid file. The daemon is started as "<trace> --repo <root> daemon".

func ProcessRunning

func ProcessRunning(pid int) bool

ProcessRunning reports whether pid still exists.

func Send

func Send(dir string, ev event.Event) error

func SendBatch

func SendBatch(dir string, events []event.Event) error

SendBatch sends one hook callback as one JSON line, preserving event order.

func Serve

func Serve(ctx context.Context, dir string, consume func(event.Event)) error

func ServeChecked

func ServeChecked(ctx context.Context, dir string, consume func(event.Event) error) error

ServeChecked retains spooled frames when the processing callback fails.

func SpoolReady

func SpoolReady(dir string) bool

func StartAsync

func StartAsync(root string)

StartAsync launches the daemon without waiting for it to become ready. Hooks use it on SessionStart so an idle-exited or crashed daemon recovers without blocking the agent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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