Documentation ¶
Index ¶
- Variables
- func FilterNone(string) bool
- func Kill(w *Worker)
- func LogServe(quit qu.C, appName string)
- func SetLevel(w *Worker, level string)
- func SimpleLog(name string) func(ent *log.Entry) (e error)
- func Start(w *Worker)
- func Stop(w *Worker)
- type StdConn
- func (s *StdConn) Close() (e error)
- func (s *StdConn) LocalAddr() (addr net.Addr)
- func (s *StdConn) Read(b []byte) (n int, e error)
- func (s *StdConn) RemoteAddr() (addr net.Addr)
- func (s *StdConn) SetDeadline(t time.Time) (e error)
- func (s *StdConn) SetReadDeadline(t time.Time) (e error)
- func (s *StdConn) SetWriteDeadline(t time.Time) (e error)
- func (s *StdConn) Write(b []byte) (n int, e error)
- type Worker
Constants ¶
This section is empty.
Variables ¶
View Source
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)
Functions ¶
Types ¶
type StdConn ¶
type StdConn struct { io.ReadCloser io.WriteCloser Quit qu.C }
func New ¶
func New(in io.ReadCloser, out io.WriteCloser, quit qu.C) (s *StdConn)
func Serve ¶
Serve runs a goroutine processing the FEC encoded packets, gathering them and decoding them to be delivered to a handler function
func (*StdConn) RemoteAddr ¶
type Worker ¶
type Worker struct { Cmd *exec.Cmd Args []string // Stderr io.WriteCloser // StdPipe io.ReadCloser StdConn *StdConn }
func LogConsume ¶
func Spawn ¶
Spawn starts up an arbitrary executable file with given arguments and attaches a connection to its stdin/stdout
func (*Worker) Interrupt ¶
Interrupt the child process. This invokes kill on windows because windows doesn't have an interrupt signal.
Click to show internal directories.
Click to hide internal directories.