fork

package
v5.0.0-...-4117378 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

func WithArgs

func WithArgs(a []string) Option

func WithBinary

func WithBinary(b string) Option

func WithCustomFlags

func WithCustomFlags(f ...string) Option

func WithDebug

func WithDebug() Option

func WithEnv

func WithEnv(e []string) Option

func WithName

func WithName(p string) Option

func WithRetries

func WithRetries(i int) Option

func WithWatch

func WithWatch(w func(event string, process *Process)) Option

type Options

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

type Process

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

func NewProcess

func NewProcess(ctx context.Context, serviceNames []string, oo ...Option) *Process

func (*Process) Err

func (p *Process) Err() error

func (*Process) GetPID

func (p *Process) GetPID() (string, bool)

func (*Process) StartAndWait

func (p *Process) StartAndWait(retry ...int) error

func (*Process) Stop

func (p *Process) Stop()

Jump to

Keyboard shortcuts

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