Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCert ¶
https://golang.org/src/crypto/tls/generate_cert.go as a function
func IsEndpointAllowed ¶
IsEndpointAllowed checks whether the endpoint URL is allowed based on an allowed domains list.
func RemoveDuplicateStr ¶
RemoveDuplicateStr removes duplicates from a slice of strings.
func SplitHostPort ¶
SplitHostPort separates host and port. If the port is not valid, it returns the entire input as host, and it doesn't check the validity of the host. Unlike net.SplitHostPort, but per RFC 3986, it requires ports to be numeric. *** taken from net/url, modified validOptionalPort() to accept ":*"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.