Documentation ¶
Index ¶
- Variables
- func MustTcpPipe() (c1 net.Conn, c2 net.Conn)
- func NewPipeConnsSimple() (c1 net.Conn, c2 net.Conn)
- func RunTestOnPipe(newConn func() (io.ReadWriteCloser, io.ReadWriteCloser))
- func RunTestTwoRwc(c io.ReadWriteCloser, s io.ReadWriteCloser)
- func TcpPipe() (c1 *net.TCPConn, c2 *net.TCPConn, err error)
- type InmemoryListener
- type PipeConns
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTimeout = errors.New("timeout")
)
Functions ¶
func RunTestOnPipe ¶
func RunTestOnPipe(newConn func() (io.ReadWriteCloser, io.ReadWriteCloser))
func RunTestTwoRwc ¶
func RunTestTwoRwc(c io.ReadWriteCloser, s io.ReadWriteCloser)
Types ¶
type InmemoryListener ¶
type InmemoryListener struct {
// contains filtered or unexported fields
}
func NewInmemoryListener ¶
func NewInmemoryListener() *InmemoryListener
func (*InmemoryListener) Addr ¶
func (ln *InmemoryListener) Addr() net.Addr
func (*InmemoryListener) Close ¶
func (ln *InmemoryListener) Close() error
func (*InmemoryListener) SetConnInnerBufferPacketSize ¶
func (ln *InmemoryListener) SetConnInnerBufferPacketSize(size int)
type PipeConns ¶
type PipeConns struct {
// contains filtered or unexported fields
}
func NewPipeConns ¶
Click to show internal directories.
Click to hide internal directories.