Documentation ¶
Index ¶
- type StdinAddr
- type StdioListener
- type StdioStream
- func (s *StdioStream) Close() error
- func (s *StdioStream) LocalAddr() net.Addr
- func (s *StdioStream) Read(b []byte) (n int, err error)
- func (s *StdioStream) RemoteAddr() net.Addr
- func (s *StdioStream) SetDeadline(t time.Time) error
- func (s *StdioStream) SetReadDeadline(t time.Time) error
- func (s *StdioStream) SetWriteDeadline(t time.Time) error
- func (s *StdioStream) Write(b []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StdinAddr ¶
type StdinAddr struct {
// contains filtered or unexported fields
}
StdinAddr is the struct for the stdi
type StdioListener ¶
type StdioListener struct {
// contains filtered or unexported fields
}
StdioListener implements the listener interface
func NewStdioListener ¶
func NewStdioListener(reader io.Reader, writer io.WriteCloser, exitOnClose bool) *StdioListener
NewStdioListener creates a new stdio listener
func (*StdioListener) Accept ¶
func (lis *StdioListener) Accept() (net.Conn, error)
Accept implements interface
func (*StdioListener) Ready ¶
func (lis *StdioListener) Ready(conn net.Conn)
Ready implements interface
type StdioStream ¶
type StdioStream struct {
// contains filtered or unexported fields
}
StdioStream is the struct that implements the net.Conn interface
func NewStdioStream ¶
func NewStdioStream(in io.Reader, out io.WriteCloser, exitOnClose bool, exitCode int) *StdioStream
NewStdioStream is used to implement the connection interface
func (*StdioStream) LocalAddr ¶
func (s *StdioStream) LocalAddr() net.Addr
LocalAddr implements interface
func (*StdioStream) Read ¶
func (s *StdioStream) Read(b []byte) (n int, err error)
Read implements interface
func (*StdioStream) RemoteAddr ¶
func (s *StdioStream) RemoteAddr() net.Addr
RemoteAddr implements interface
func (*StdioStream) SetDeadline ¶
func (s *StdioStream) SetDeadline(t time.Time) error
SetDeadline implements interface
func (*StdioStream) SetReadDeadline ¶
func (s *StdioStream) SetReadDeadline(t time.Time) error
SetReadDeadline implements interface
func (*StdioStream) SetWriteDeadline ¶
func (s *StdioStream) SetWriteDeadline(t time.Time) error
SetWriteDeadline implements interface
Click to show internal directories.
Click to hide internal directories.