start

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentSession

type AgentSession struct {
	Name      string    `json:"name"`
	PID       int       `json:"pid"`
	StartedAt time.Time `json:"started_at"`
}

type Lock

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

func (*Lock) Release

func (l *Lock) Release() error

type Manager

type Manager struct {
	Dir       string
	StatePath string
	LogPath   string
	LockPath  string
}

func NewManager

func NewManager(configDir string) (*Manager, error)

func (*Manager) ClearState

func (m *Manager) ClearState() error

func (*Manager) LoadState

func (m *Manager) LoadState() (*State, error)

func (*Manager) Lock

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

func (*Manager) SaveState

func (m *Manager) SaveState(state *State) error

type State

type State struct {
	Version          int            `json:"version"`
	DaemonPID        int            `json:"daemon_pid"`
	ProxyURL         string         `json:"proxy_url"`
	APIURL           string         `json:"api_url"`
	ShutdownWhenIdle bool           `json:"shutdown_when_idle"`
	Agents           []AgentSession `json:"agents"`
	LogPath          string         `json:"log_path"`
	UpdatedAt        time.Time      `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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