stdio

package
v0.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: MPL-2.0 Imports: 4 Imported by: 2

Documentation

Index

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

func NewStdinAddr

func NewStdinAddr(s string) *StdinAddr

NewStdinAddr creates a new StdinAddr

func (*StdinAddr) Network

func (a *StdinAddr) Network() string

Network implements interface

func (*StdinAddr) String

func (a *StdinAddr) String() string

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) Addr

func (lis *StdioListener) Addr() net.Addr

Addr implements interface

func (*StdioListener) Close

func (lis *StdioListener) Close() error

Close 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) Close

func (s *StdioStream) Close() error

Close implements 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

func (*StdioStream) Write

func (s *StdioStream) Write(b []byte) (n int, err error)

Write implements interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL