Versions in this module Expand all Collapse all v0 v0.2.0 Jul 22, 2026 v0.1.0 Jul 22, 2026 Changes in this version + func DeclaredPorts(s config.Server) []int + func ExecCommand(s config.Server) (command string, args []string) + func MLXCommand(s config.Server) (command string, args []string) + func NewestLog(logDir, name string) (path string, ok bool, err error) + func PythonCommand(s config.Server) (command string, args []string) + func ResolveCommand(s config.Server) (string, []string, error) + func ResolveGracePeriod(s config.Server, supervisor config.Supervisor) time.Duration + func RewriteBuildOutput(buildCmd, newPath string) (string, error) + func SourceCommand(s config.Server) (command string, args []string) + type BuildLifecycle struct + Start func() error + Stop func() error + type BuildResult struct + Replaced bool + Restarted bool + func PerformBuild(s config.Server, lc *BuildLifecycle) (BuildResult, error) + type KillSignal string + const KillSignalKill + const KillSignalNone + const KillSignalTerm + type LaunchSpec struct + Args []string + Command string + Dir string + Env map[string]string + LogDir string + Name string + Now time.Time + type Process struct + Cmd *exec.Cmd + LogPath string + func Launch(spec LaunchSpec) (*Process, error) + func LaunchExec(logDir string, s config.Server) (*Process, error) + func LaunchMLX(logDir string, s config.Server) (*Process, error) + func LaunchPython(logDir string, s config.Server) (*Process, error) + func LaunchSource(logDir string, s config.Server) (*Process, error) + type Result struct + Name string + Signal KillSignal + VerifiedClean bool + func Teardown(ctx context.Context, target Target, grace time.Duration) (Result, error) + func TeardownAll(ctx context.Context, servers []config.Server, supervisor config.Supervisor, ...) ([]Result, error) + func TeardownForeign(ctx context.Context, name string, pid int32, ports []int, grace time.Duration) (Result, error) + type StalenessResult struct + Cleanup func() + Stale bool + TempBinary string + func ProbeStaleness(s config.Server) (StalenessResult, error) + type Target struct + Health *health.Spec + Name string + PID int32 + Ports []int