server

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

type HTTPTunnelConfig struct {
	Addr          string
	ExternalProxy string
	RootCAFile    string
}

HTTPTunnelConfig for keeping track of HTTP connection details

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL