Versions in this module Expand all Collapse all v1 v1.0.1 Apr 8, 2021 Changes in this version + func EnsureListen(c *C, hostport string) + func GenerateCertWithCA(hostname string) ([]byte, []byte, []byte, error) + func GenerateCertWithCAPrefs(hostname string, lookupIps bool, expiration time.Duration) ([]byte, []byte, []byte, error) + func GenerateSelfSignedCert(hostname string) ([]byte, []byte, error) + func PrivDerToPem(priv *rsa.PrivateKey) []byte + func PubDerToPem(der []byte) []byte + func RandomListenPort(c *C) int + type CustomHandler struct + Handler func(witer http.ResponseWriter, req *http.Request) + func (c *CustomHandler) ServeHTTP(writer http.ResponseWriter, req *http.Request) + type TestServer struct + CloseChan chan bool + func SetupTestServer(ssl bool) (*TestServer, string)