Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockServer ¶
type MockServer struct { net.Listener Timeout time.Duration Err error Handshake func(net.Conn) Transp func() (*transport.Client, error) }
func NewMockServerTCP ¶
func NewMockServerTCP(t *testing.T, to time.Duration, cert string, proxy *transport.ProxyConfig) *MockServer
func NewMockServerTLS ¶
func NewMockServerTLS(t *testing.T, to time.Duration, cert string, proxy *transport.ProxyConfig) *MockServer
func (*MockServer) Accept ¶
func (m *MockServer) Accept() net.Conn
func (*MockServer) Addr ¶
func (m *MockServer) Addr() string
func (*MockServer) Await ¶
func (m *MockServer) Await() chan net.Conn
func (*MockServer) ClientDeadline ¶
func (m *MockServer) ClientDeadline(client net.Conn, to time.Duration)
func (*MockServer) ConnectPair ¶
type MockServerFactory ¶
type MockServerFactory func(*testing.T, time.Duration, string, *transport.ProxyConfig) *MockServer
type TransportFactory ¶
Click to show internal directories.
Click to hide internal directories.