Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ActiveServers = make(map[string]*ServerProcess)
ActiveServers keeps track of running server processes
Functions ¶
func FindJavaPID ¶
FindJavaPID finds the PID of the Java process for a Minecraft server
func IsProcessRunning ¶
IsProcessRunning checks if a process with the given PID is running
func LoadActiveServers ¶
func LoadActiveServers() error
LoadActiveServers loads the active servers from a file
func NewSysProcAttr ¶
func NewSysProcAttr() *syscall.SysProcAttr
NewSysProcAttr returns a new SysProcAttr for Unix-like systems
func RefreshServerStatus ¶
func RefreshServerStatus()
RefreshServerStatus updates the status of all active servers
func SaveActiveServers ¶
func SaveActiveServers() error
SaveActiveServers saves the active servers to a file
Types ¶
type ServerProcess ¶
ServerProcess represents a running Minecraft server process
Click to show internal directories.
Click to hide internal directories.