Documentation ¶
Index ¶
- func RunEdgeHTTPProxyServer(ctx context.Context, listenAddr string, forwardingAddress func(string) string, ...)
- func RunEdgeTLSProxyServer(ctx context.Context, listenAddr string, cloudURL *url.URL, ...)
- func StartHTTPSTunnel(config *HTTPSTunnelConfig) error
- func StartHTTPTunnel(config *HTTPTunnelConfig) error
- type HTTPSTunnelConfig
- type HTTPTunnelConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunEdgeHTTPProxyServer ¶
func RunEdgeHTTPProxyServer(ctx context.Context, listenAddr string, forwardingAddress func(string) string, caList *x509.CertPool, clientCert *tls.Certificate, proxyForEdge func(*http.Request) (*url.URL, error))
RunEdgeHTTPProxyServer - run HTTP proxy server for Edge
func RunEdgeTLSProxyServer ¶
func RunEdgeTLSProxyServer(ctx context.Context, listenAddr string, cloudURL *url.URL, caList *x509.CertPool, clientCert *tls.Certificate)
RunEdgeTLSProxyServer - run TLS proxy server for Edge
func StartHTTPSTunnel ¶
func StartHTTPSTunnel(config *HTTPSTunnelConfig) error
StartHTTPSTunnel - start HTTPS Tunnel for Edge
func StartHTTPTunnel ¶
func StartHTTPTunnel(config *HTTPTunnelConfig) error
StartHTTPTunnel starts a server that accepts to the HTTP CONNECT method to proxy arbitrary TCP connections. It can be used to tunnel HTTPS connections.
Types ¶
type HTTPSTunnelConfig ¶
type HTTPSTunnelConfig struct { Addr string ExternalProxy string RootCAFile string CertFile string KeyFile string Username string Password string }
HTTPSTunnelConfig keeps track of HTTPS tunnel configurations (certs, username/passwd, ...)
type HTTPTunnelConfig ¶
HTTPTunnelConfig for keeping track of HTTP connection details
Click to show internal directories.
Click to hide internal directories.