model

package
v0.0.72 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KillAllResponse

type KillAllResponse struct {
	KilledCount int      `json:"killed_count"`
	KilledPIDs  []int    `json:"killed_pids"`
	Errors      []string `json:"errors,omitempty"`
}

type KillRequest

type KillRequest struct {
	PID int `json:"pid"`
}

type KillResponse

type KillResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

type PSResponse

type PSResponse struct {
	Processes []ProcessInfo `json:"processes"`
}

type ProcessInfo

type ProcessInfo struct {
	PID     int    `json:"pid"`
	Command string `json:"command"`
	Started string `json:"started"`
}

type RunRequest

type RunRequest struct {
	Command string   `json:"command"`
	Args    []string `json:"args,omitempty"`
}

type RunResponse

type RunResponse struct {
	Stdout   string `json:"stdout"`
	Stderr   string `json:"stderr"`
	ExitCode int    `json:"exit_code"`
}

type StartRequest

type StartRequest struct {
	Command   string   `json:"command"`
	Args      []string `json:"args,omitempty"`
	Singleton bool     `json:"singleton,omitempty"`
}

type StartResponse

type StartResponse struct {
	PID int `json:"pid"`
}

Jump to

Keyboard shortcuts

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