package
0.0.0-20231206062002-1ce2f004b7d9
Repository: https://github.com/codingeasygo/util.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CopyBuffer will copy data and call dst Closer after done.
CopyBufferMax will copy data to writer and total limit by max.
CopyBufferMulti will copy data from Reader and write to multi Writer at the same time.
CopyMax will copy data to writer and total limit by max.
CopyMulti will copy data from Reader and write to multi Writer at the same time.
No description provided by the author
No description provided by the author
CreatePipedConn will return two piped connection.
DialNetPiper will return new NetPiper by net.Dial.
FullBuffer will read data from reader until to buffer.
LocalAddr will return net.Conn.LocalAddr or fmt.Sprintf("%v", target).
NewByteDistributeProcessor will return new processor.
NewByteDistributeWriter will return new ByteDistributeWriter.
NewCombinedReadWriteCloser will return new combined.
NewConnWrapper will create new ConnWrapper.
NewCopyPiper will return new CopyPiper.
No description provided by the author
NewEchoConn will return new echo connection.
NewEchoDialer will return new EchoDialer.
NewEchoPiper will return new EchoPiper.
NewLatestBuffer will create remain bufffer.
NewMultiWriter will return new MultiWriteCloser.
NewPipedChan will return new PipedChan.
No description provided by the author
NewPrefixConn will return newPrefixConn.
NewPrefixReader will return new PrefixReader.
NewPrefixReadWriteCloser will return new PrefixReadWriteCloser.
NewPrintConn will create new PrintConn.
No description provided by the author
No description provided by the author
NewStringConn will return new StringConn.
NewTCPKeepAliveListener will create listener.
No description provided by the author
Pipe will return new pipe connection.
RemoteAddr will return net.Conn.RemoteAddr or fmt.Sprintf("%v", target).

# Variables

ErrAsyncRunning is error for async running on PipeConn.

# Structs

ByteDistributeProcessor is distribute processor by prefix read first byte.
ByteDistributeWriter is Writer by byte.
CombinedReadWriteCloser is middle struct to combine Reader/Writer/Closer.
ConnWrapper is wrapper for net.Conn by ReadWriteCloser.
CopyPiper is Piper implement by copy.
No description provided by the author
EchoConn is net.Conn impl by os.Pipe.
EchoDialer is dialer test.
EchoPiper is echo implement to Piper.
LatestBuffer is membory buffer to remain latest buffer size bytes.
MultiWriteCloser is WriterCloser to bind one write to mulit sub writer.
NetPiper is Piper implement by net.Dial.
PipedChan provoider Write buffer to Read implement by chan.
PipedConn is an implementation of the net.Conn interface for piped two connection.
No description provided by the author
PipeReadWriteCloser is pipe connection.
PrefixConn is net.Conn implement for prefix read data.
PrefixReader provide feature to prefix read data from Reader.
PrefixReadWriteCloser is prefix read implement.
PrintConn is net.Conn to print the transfter data.
No description provided by the author
No description provided by the author
StringConn is an ReadWriteCloser for return remote address info.
TCPKeepAliveListener is normal tcp listner for set tcp connection keep alive.
No description provided by the author

# Interfaces

Piper is interface for process pipe connection.
PiperDialer is interface for implement piper dialer.
Processor is interface for process connection.

# Type aliases

CloserF is wrapper for io.Closer.
ListenerF is net.Listener func implement.
PiperDialerF is func to implement PiperDialer.
PiperF is func to implement Piper.
ProcessorF is func to implement Processor.
ReaderF is wrapper for io.Reader.
WriterF is wrapper for io.Writer.