Documentation ¶
Index ¶
- type Net
- func (n *Net) Close()
- func (n *Net) DefaultDataType(bool)
- func (n *Net) File() *os.File
- func (n *Net) ForceClose()
- func (n *Net) GetDataType() string
- func (n *Net) IsTTY() bool
- func (n *Net) Open()
- func (n *Net) Read(p []byte) (i int, err error)
- func (n *Net) ReadAll() (b []byte, err error)
- func (n *Net) ReadArray(ctx context.Context, callback func([]byte)) error
- func (n *Net) ReadArrayWithType(ctx context.Context, callback func(interface{}, string)) error
- func (n *Net) ReadLine(callback func([]byte)) error
- func (n *Net) ReadMap(config *config.Config, callback func(*stdio.Map)) error
- func (n *Net) SetDataType(dt string)
- func (n *Net) Stats() (bytesWritten, bytesRead uint64)
- func (n *Net) Write(b []byte) (i int, err error)
- func (n *Net) WriteArray(dataType string) (stdio.ArrayWriter, error)
- func (n *Net) WriteTo(dst io.Writer) (i int64, err error)
- func (n *Net) Writeln(b []byte) (i int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Net ¶
type Net struct {
// contains filtered or unexported fields
}
Net Io interface
func NewListener ¶
NewListener creates a new net.Listen-based stream.Io pipe
func (*Net) DefaultDataType ¶
DefaultDataType is unavailable for net Io interfaces
func (*Net) ForceClose ¶
func (n *Net) ForceClose()
ForceClose forces the net Io interface to close. This should only be called on reader interfaces
func (*Net) GetDataType ¶
GetDataType read the stream.Io interface's data type
func (*Net) ReadArrayWithType ¶
ReadArrayWithType treats net Io interface as an array of data
func (*Net) SetDataType ¶
SetDataType assigns a data type to the stream.Io interface
func (*Net) WriteArray ¶
func (n *Net) WriteArray(dataType string) (stdio.ArrayWriter, error)
WriteArray performs data type specific buffered writes to an stdio.Io interface
Click to show internal directories.
Click to hide internal directories.