runtime

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

internal/runtime/process.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

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

Process represents a running server process

func FindProcess

func FindProcess(name string) (*Process, error)

FindProcess finds a process by name

func NewProcess

func NewProcess(command string, args []string, opts ProcessOptions) (*Process, error)

NewProcess creates a new process

func (*Process) IsRunning

func (p *Process) IsRunning() (bool, error)

IsRunning checks if the process is running

func (*Process) ShowLogs

func (p *Process) ShowLogs(follow bool) error

ShowLogs shows logs for a process

func (*Process) Start

func (p *Process) Start() error

Start starts the process

func (*Process) Stop

func (p *Process) Stop() error

Stop stops the process

type ProcessOptions

type ProcessOptions struct {
	Env     map[string]string
	WorkDir string
	Name    string
}

ProcessOptions contains options for process start

Jump to

Keyboard shortcuts

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