proc

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KoiProc

type KoiProc struct {
	HookOutput func(output string)
	// contains filtered or unexported fields
}

KoiProc is the Koishi subprocess wrapper for Koishi Desktop. Also, it is an rpl.Source for emitting subprocess outputs as rpl.Log objects to rpl.Target targets.

func NewKoiProc

func NewKoiProc(
	i *do.Injector,
	ch uint16,
	path string,
	command string,
	args []string,
	cwd string,
) *KoiProc

func NewNodeProc

func NewNodeProc(
	i *do.Injector,
	ch uint16,
	command []string,
	cwd string,
) *KoiProc

func NewYarnProc

func NewYarnProc(
	i *do.Injector,
	ch uint16,
	command []string,
	cwd string,
) *KoiProc

func (*KoiProc) Close

func (koiProc *KoiProc) Close()

func (*KoiProc) Kill

func (koiProc *KoiProc) Kill() error

Kill sends syscall.SIGKILL to process.

This just sends the signal and do not wait for anything. If possible, use KoiProc.Stop.

func (*KoiProc) Pid added in v0.4.0

func (koiProc *KoiProc) Pid() int

func (*KoiProc) Register

func (koiProc *KoiProc) Register(target rpl.Target)

func (*KoiProc) Run

func (koiProc *KoiProc) Run() error

func (*KoiProc) Stop

func (koiProc *KoiProc) Stop() error

Stop sends syscall.SIGTERM to process.

This just sends the signal and do not wait for anything.

Jump to

Keyboard shortcuts

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