Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerHost string
ServerHost is filled when calling Serve() and will contain the hostname that was generated for this machine
Functions ¶
func HostnameForIP ¶
HostnameForIP returns a hostname for the given ipv4
func HttpsRedirectorServer ¶
HttpsRedirectorServer launches a redirector and serves serves requests in a separate goroutine.
Types ¶
type HttpsRedirector ¶
type HttpsRedirector string
HttpsRedirector is a http.Handler that will redirect all requests it receives to the specified host as https.
func (HttpsRedirector) ServeHTTP ¶
func (h HttpsRedirector) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.