Documentation
¶
Index ¶
- func Copy(destination io.Writer, source io.Reader) (written int64, err error)
- func CopyBuffer(destination io.Writer, source io.Reader, buffer *buf.Buffer) (written int64, err error)
- func CopyConn(remote net.Conn, local net.Conn) error
- type CachedConn
- func (c *CachedConn) Cache() *buf.Buffer
- func (c *CachedConn) Close() error
- func (c *CachedConn) CurrentPosition() int
- func (c *CachedConn) Peek(n int) ([]byte, error)
- func (c *CachedConn) PeekUntil(end ...[]byte) ([]byte, []byte, error)
- func (c *CachedConn) Read(p []byte) (n int, err error)
- func (c *CachedConn) Release()
- func (c *CachedConn) Rewind(position int)
- func (c *CachedConn) UpstreamReader() io.Reader
- func (c *CachedConn) UpstreamWriter() io.Writer
- type PeekConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyBuffer ¶
Types ¶
type CachedConn ¶
func NewCachedConn ¶
func NewCachedConn(c net.Conn) *CachedConn
func (*CachedConn) Cache ¶
func (c *CachedConn) Cache() *buf.Buffer
func (*CachedConn) Close ¶
func (c *CachedConn) Close() error
func (*CachedConn) CurrentPosition ¶
func (c *CachedConn) CurrentPosition() int
func (*CachedConn) PeekUntil ¶
func (c *CachedConn) PeekUntil(end ...[]byte) ([]byte, []byte, error)
func (*CachedConn) Release ¶
func (c *CachedConn) Release()
func (*CachedConn) Rewind ¶
func (c *CachedConn) Rewind(position int)
func (*CachedConn) UpstreamReader ¶
func (c *CachedConn) UpstreamReader() io.Reader
func (*CachedConn) UpstreamWriter ¶
func (c *CachedConn) UpstreamWriter() io.Writer
Click to show internal directories.
Click to hide internal directories.