process

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ForceHardRestart = "__hard_reload"
	ForceSoftRestart = "__soft_reload"
)

Variables

This section is empty.

Functions

func New

func New(cfg *config.Config, opts ...ChildProcessOption) (*childProcess, error)

Types

type ChildProcessOption

type ChildProcessOption func(*childProcess) error

func WithConsoleOutput

func WithConsoleOutput(c ConsoleOutput) ChildProcessOption

func WithHMRListener

func WithHMRListener(listener chan string) ChildProcessOption

type ConsoleOutput

type ConsoleOutput interface {
	OnHardRestart()
	Stdout() io.Writer
	Stderr() io.Writer
}

Jump to

Keyboard shortcuts

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