Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientTLSConfig ¶
func GetClientTLSConfig(caFile, certFile, keyFile, serverName string, protos []string) (*tls.Config, error)
GetClientTLSConfig returns tlsConfig based on x509 certs
func Normalize ¶
Normalize replaces underscores with hyphens we should always use hyphens instead of underscores when registering component flags
func PrettyPrintURL ¶ added in v0.0.15
PrettyPrintURL decodes the URL encoded input string and print each key=val pair separated by comma
func RedirectTo ¶ added in v0.0.17
func RedirectTo(to string) func(http.ResponseWriter, *http.Request)
RedirectTo redirects request to a certain destination.
func RemovePortFromHost ¶ added in v0.0.15
RemovePortFromHost removes port number from the host address that may be of the form "<host>:<port>" where the <host> can be an either an IPv4/6 address or a domain name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.