Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteChannelWriter ¶
type ByteChannelWriter struct {
// contains filtered or unexported fields
}
ByteChannelWriter provides a newline buffered io.Writer that writes each line to the given channel - it is NOT ok to create a ByteChannelWriter using anything other than NewByteChannelWriter()
func NewByteChannelWriter ¶
func NewByteChannelWriter(ch chan []byte) *ByteChannelWriter
NewByteChannelWriter creates a new ByteChannelWriter on the given chan []byte
type Process ¶
type Process struct { Command []string Stdin chan []byte Stdout chan []byte Stderr chan []byte // contains filtered or unexported fields }
A Process is an instance of a program
func NewProcess ¶
NewProcess creates a new process from the given config
func (*Process) Run ¶
func (p *Process) Run()
Run launches the process along with its control channel
func (*Process) StdoutMonitor ¶
func (p *Process) StdoutMonitor()
StdoutMonitor just prints the process Std{out,err} to os.Stdout helpful for debugging/testing individual processes
Click to show internal directories.
Click to hide internal directories.