Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReadHexLogger ¶
NewReadHexLogger returns a reader that behaves like r except that it logs to stderr using ecoding/hex.
func NewReadLogger ¶
NewReadLogger returns a reader that behaves like r except that it logs (using log.Print) each read to standard error, printing the prefix and the hexadecimal data written.
func NewWriteLogger ¶
NewWriteLogger returns a writer that behaves like w except that it logs (using log.Printf) each write to standard error, printing the prefix and the hexadecimal data written.
func WrapRWC ¶
func WrapRWC(c io.ReadWriteCloser) io.ReadWriteCloser
Types ¶
type Conn ¶
type Conn struct {
RWC
// contains filtered or unexported fields
}
func (*Conn) RemoteAddr ¶
type Counter ¶ added in v1.2.0
type Counter struct {
io.Reader
io.Writer
Cr *datacounter.ReaderCounter
Cw *datacounter.WriterCounter
// contains filtered or unexported fields
}
func WrapCounter ¶ added in v1.2.0
func WrapCounter(c io.ReadWriteCloser) *Counter
Click to show internal directories.
Click to hide internal directories.