Versions in this module Expand all Collapse all v0 v0.3.0 Nov 6, 2020 Changes in this version + var BadGatewayMessage = ... + func CARootPath() string + func CertPath() string + func CreateProxy(targetURL url.URL, vhost string) *httputil.ReverseProxy + func MakeCert(host string) (string, string, error) + type LogRecord struct + func (r *LogRecord) Write(p []byte) (int, error) + func (r *LogRecord) WriteHeader(status int) + type LoggedMux struct + VhostLogListeners map[string]chan string + func NewLoggedMux() *LoggedMux + func (mux *LoggedMux) AddLogListener(host string, listener chan string) + func (mux *LoggedMux) RemoveLogListener(host string) + func (mux *LoggedMux) ServeHTTP(w http.ResponseWriter, r *http.Request) + type ProxyTransport struct + func (t *ProxyTransport) RoundTrip(request *http.Request) (*http.Response, error) + type Vhost struct + Cert string + Handler http.Handler + Host string + Key string + Port int + func CreateVhost(input string, useTLS bool) (*Vhost, error) + type VhostMux struct + Servers map[string]*Vhost + func CreateVhostMux(bindings []string, useTLS bool) *VhostMux + func (v *VhostMux) ServeHTTP(w http.ResponseWriter, r *http.Request)