daemon

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package daemon passively detects the Codex app-server daemon, which caches auth.json until it is restarted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SocketPath

func SocketPath(codexHome string) string

SocketPath is, on Unix, a symlink to a socket with a short path.

Types

type State

type State int
const (
	NotRunning State = iota
	Running
	// Unknown means inconsistent evidence; such a daemon must not be
	// restarted.
	Unknown
)

type Status

type Status struct {
	State State
	PID   int
	// StartedAt is zero if it could not be determined.
	StartedAt time.Time
	Reason    string
}

func Detect

func Detect(codexHome string) Status

Jump to

Keyboard shortcuts

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