Documentation ¶
Index ¶
- Variables
- func EchoHandler(r io.Reader, w io.Writer)
- func InitCommonGateways()
- func InitEchoServer(port string)
- func InitEchoUdp(port int) error
- func NewLocalListener() net.Listener
- func StartH2cServer(handler http.Handler) net.Listener
- func TcpEchoTest(c1 net.Conn)
- func TestGateway(baseport int) *mesh.Gateway
- type FakeTLSConn
- type TestEnv
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func InitCommonGateways ¶
func InitCommonGateways()
Init common (fixed) est env.
- ClientGW on 16000(DM), 16001(SOCKS), 16002(HPROXY), 16003(SSHClientConn) - HSClientGW and HPClientGW clients set to use ClientGW
- VPNGW on 14000(DM), 14001, 14002 - HSVpnGW, HPVpnGW
- TCP echo on 3000 - UDP echo on 3001 - test http server on 3002, https on 3003
func NewLocalListener ¶
func StartH2cServer ¶
Start a H2 server over plain text
func TcpEchoTest ¶
tests on the 'echo' server. c1 is an established connection to the echo server, possibly using intermediaries.
func TestGateway ¶
Init a Gateway, with a new set of private keys: - basePort - H2/QUIC MTLS DMesh port - +1 SOCKS - +2 HTTP PROXY - +22 SSHClientConn
Types ¶
type FakeTLSConn ¶
Used by a H2 server to 'fake' a secure connection.
func (*FakeTLSConn) ConnectionState ¶
func (c *FakeTLSConn) ConnectionState() tls.ConnectionState
Click to show internal directories.
Click to hide internal directories.