daemon

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Proxy

func Proxy(args []string, cwd string, stdout, stderr io.Writer) (int, error)

func Serve

func Serve(exePath string, errOut io.Writer) error

Types

type Manager

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

func New

func New(homeDir string) *Manager

func (*Manager) Restart

func (m *Manager) Restart(exePath string) (Status, error)

func (*Manager) Start

func (m *Manager) Start(exePath string) (Status, error)

func (*Manager) Status

func (m *Manager) Status() (Status, error)

func (*Manager) Stop

func (m *Manager) Stop() (Status, error)

type Status

type Status struct {
	Running   bool
	PID       int
	StartedAt time.Time
	LogPath   string
}

Jump to

Keyboard shortcuts

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