model

package
v0.0.120 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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