Documentation
¶
Overview ¶
Package server is a wrapper around the net/http package that starts listeners for HTTP and HTTPS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct {
Hostname string `json:"Hostname"` // Server name
UseHTTP bool `json:"UseHTTP"` // Listen on HTTP
UseHTTPS bool `json:"UseHTTPS"` // Listen on HTTPS
HTTPPort int `json:"HTTPPort"` // HTTP port
HTTPSPort int `json:"HTTPSPort"` // HTTPS port
RedirectToHTTPS bool `json:"RedirectToHTTPS"` // Redirect to HTTPS
CertFile string `json:"CertFile"` // HTTPS certificate
KeyFile string `json:"KeyFile"` // HTTPS private key
}
Info stores the hostname and port number.
Click to show internal directories.
Click to hide internal directories.