noderunner

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilteredWriter

func NewFilteredWriter(dst io.Writer, expr string) (io.Writer, error)

func StartLineReader

func StartLineReader(input io.Reader, readerFunc func(string), logger *zap.Logger) error

Types

type FilteredWriter

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

func (FilteredWriter) Write

func (w FilteredWriter) Write(data []byte) (int, error)

type NodeRunner

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

func New

func New(bin string, args []string, stderr bool) *NodeRunner

func (*NodeRunner) Done

func (runner *NodeRunner) Done() <-chan struct{}

func (*NodeRunner) SetDir

func (runner *NodeRunner) SetDir(dir string)

func (*NodeRunner) SetEnv

func (runner *NodeRunner) SetEnv(env map[string]string)

func (*NodeRunner) SetLineReader

func (runner *NodeRunner) SetLineReader(fn func(string))

func (*NodeRunner) SetLogFiltering

func (runner *NodeRunner) SetLogFiltering(expr string)

func (*NodeRunner) SetLogger

func (runner *NodeRunner) SetLogger(logger *zap.Logger)

func (*NodeRunner) Start

func (runner *NodeRunner) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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