Documentation ¶
Index ¶
- func Compress(rwc io.ReadWriteCloser) io.ReadWriteCloser
- func GetBuf(size int) []byte
- func GetSnappyReader(r io.Reader) *snappy.Reader
- func GetSnappyWriter(w io.Writer) *snappy.Writer
- func Join(a io.ReadWriteCloser, b io.ReadWriteCloser) (toBCount int64, toACount int64)
- func NewWrapReadWriteCloserConn(rwc io.ReadWriteCloser, hideConn net.Conn) net.Conn
- func PutBuf(buf []byte)
- func PutSnappyReader(sr *snappy.Reader)
- func PutSnappyWriter(sw *snappy.Writer)
- func WrapReadWriteCloser(r io.Reader, w io.Writer, closer func() error) io.ReadWriteCloser
- type ReadWriteCloser
- type WrapReadWriteCloserConn
- func (rwcc *WrapReadWriteCloserConn) LocalAddr() net.Addr
- func (rwcc *WrapReadWriteCloserConn) RemoteAddr() net.Addr
- func (rwcc *WrapReadWriteCloserConn) SetDeadline(t time.Time) error
- func (rwcc *WrapReadWriteCloserConn) SetReadDeadline(t time.Time) error
- func (rwcc *WrapReadWriteCloserConn) SetWriteDeadline(t time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
func Compress(rwc io.ReadWriteCloser) io.ReadWriteCloser
func Join ¶
func Join(a io.ReadWriteCloser, b io.ReadWriteCloser) (toBCount int64, toACount int64)
Join two io.ReadWriteCloser and do some operations.
func PutSnappyReader ¶
func PutSnappyWriter ¶
func WrapReadWriteCloser ¶
Types ¶
type ReadWriteCloser ¶
type ReadWriteCloser struct {
// contains filtered or unexported fields
}
func (*ReadWriteCloser) Close ¶
func (rwc *ReadWriteCloser) Close() error
type WrapReadWriteCloserConn ¶
type WrapReadWriteCloserConn struct { io.ReadWriteCloser // contains filtered or unexported fields }
func (*WrapReadWriteCloserConn) LocalAddr ¶
func (rwcc *WrapReadWriteCloserConn) LocalAddr() net.Addr
func (*WrapReadWriteCloserConn) RemoteAddr ¶
func (rwcc *WrapReadWriteCloserConn) RemoteAddr() net.Addr
func (*WrapReadWriteCloserConn) SetDeadline ¶
func (rwcc *WrapReadWriteCloserConn) SetDeadline(t time.Time) error
func (*WrapReadWriteCloserConn) SetReadDeadline ¶
func (rwcc *WrapReadWriteCloserConn) SetReadDeadline(t time.Time) error
func (*WrapReadWriteCloserConn) SetWriteDeadline ¶
func (rwcc *WrapReadWriteCloserConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.