pipe

package
v2.0.2-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct{}

Factory connects to stack using standard streams (STDIN, STDOUT pipes).

func NewPipeFactory

func NewPipeFactory() *Factory

NewPipeFactory returns new factory instance and starts listening

func (*Factory) Close

func (f *Factory) Close() error

Close the factory.

func (*Factory) SpawnWorker

func (f *Factory) SpawnWorker(cmd *exec.Cmd, listeners ...events.Listener) (*worker.Process, error)

func (*Factory) SpawnWorkerWithTimeout

func (f *Factory) SpawnWorkerWithTimeout(ctx context.Context, cmd *exec.Cmd, listeners ...events.Listener) (*worker.Process, error)

SpawnWorker creates new Process and connects it to goridge relay, method Wait() must be handled on level above.

type SpawnResult

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

Jump to

Keyboard shortcuts

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