Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SmartProxy ¶
type SmartProxy struct {
// contains filtered or unexported fields
}
SmartProxy - stores http and websocket handlers
func SmartHTTPProxy ¶
func SmartHTTPProxy(forwardingAddress func(string) string, caList *x509.CertPool, clientCert *tls.Certificate, proxyForEdge func(*http.Request) (*url.URL, error)) *SmartProxy
SmartHTTPProxy function for proxying the connections (http and websocket)
func (*SmartProxy) ServeHTTP ¶
func (smartProxy *SmartProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
type WebsocketProxyHandler ¶
type WebsocketProxyHandler struct { Dialer *websocket.Dialer ProxyURL *url.URL Upgrader websocket.Upgrader // contains filtered or unexported fields }
WebsocketProxyHandler - keeps track of websocket prooxy details
func (*WebsocketProxyHandler) ServeHTTP ¶
func (websocketProxyHandler *WebsocketProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.