Versions in this module Expand all Collapse all v1 v1.0.1 Aug 8, 2022 v1.0.0 Aug 4, 2022 Changes in this version + func RecvResponse(r io.Reader, o interface{}) error + func SendResponse(o interface{}) error + type ErrCantConnect struct + func (e ErrCantConnect) Error() string + func (e ErrCantConnect) Unwrap() error + type LenReader interface + Len func() int + type Monitor struct + func NewMonitor(cmd *exec.Cmd, stdout LenReader, stderr LenReader) *Monitor + func (m *Monitor) Kill() error + func (m *Monitor) Start(ctx context.Context) error + type MonitorClient struct + func NewMonitorClient(pid int) *MonitorClient + func (m *MonitorClient) Kill() error + func (m *MonitorClient) Poll() (*PollMessage, error) + func (m *MonitorClient) Reap() error + type MonitorServer struct + func NewMonitorServer(mon *Monitor) *MonitorServer + func (m *MonitorServer) Serve() error + func (m *MonitorServer) Shutdown() error + type PollMessage struct + Error string + ExitCode *int + Stderr string + Stdout string + type PollReply struct + Alive bool + ExitCode int + Stderr []byte + Stdout []byte + type SafeBuffer struct + func (sb *SafeBuffer) Len() int + func (sb *SafeBuffer) Read(data []byte) (int, error) + func (sb *SafeBuffer) Write(data []byte) (int, error) + type SafeExitCode struct + func (s *SafeExitCode) Load() *int + func (s *SafeExitCode) Store(code int) + type SafeSignal struct + func (s *SafeSignal) Signal() + func (s *SafeSignal) Wait() + type StartMessage struct + SessionID string