Documentation
¶
Index ¶
- func EnsureRunning(root string) error
- func ProcessIsTraceDaemon(pid int, root string) bool
- func ProcessRunning(pid int) bool
- func Send(dir string, ev event.Event) error
- func Serve(ctx context.Context, dir string, consume func(event.Event)) error
- func SpoolReady(dir string) bool
- func StartAsync(root string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureRunning ¶
EnsureRunning starts the daemon and waits until it is accepting events.
func ProcessIsTraceDaemon ¶
ProcessIsTraceDaemon guards against signalling a recycled PID from a stale daemon.pid file. The daemon is started as "<trace> --repo <root> daemon".
func ProcessRunning ¶
ProcessRunning reports whether pid still exists.
func SpoolReady ¶
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.