package
0.0.0-20181025162720-c8a214aafdbb
Repository: https://github.com/turbinelabs/nonstdlib.git
Documentation: pkg.go.dev

# Packages

proc-test is a trivial application that responds to signals such as those sent by proc.LoggingCommand and proc.ManagedProc.

# Functions

DefaultLoggingCommand constructs a LoggingCmd that logs to the default logger.
LoggingCommand constructs a LoggingCmd that logs to the given logger.
NewDefaultLogWriter creates a new LogWriter that emits lines to the default logger (on stderr) with the given prefix.
NewDefaultManagedProc constructs a new ManagedProc using DefaultLoggingCommand.
NewLogWriter creates a new LogWriter that emits lines to the given logger with the given prefix.
NewManagedProc constructs a new ManagedProc with a LoggingCommand using the given logger.
NewMockManagedProc creates a new mock instance.

# Structs

LoggingCmd is a wrapper around os.exec.Cmd that logs stdout and stderr to a log.Logger.
LogWriter copies data written to pipe (normally from an os.Process) to the given log (or the default log).
MockManagedProc is a mock of ManagedProc interface.
MockManagedProcMockRecorder is the mock recorder for MockManagedProc.

# Interfaces

ManagedProc models a process under management.