package
2.85.0+incompatible
Repository: https://github.com/transcom/mymove.git
Documentation: pkg.go.dev
# Functions
CreateNamedServer returns a no-tls, tls, or mutual-tls Server based on the input given and an error, if any.
LoadCertPoolFromPkcs7Package reads the certificates in a DER-encoded PKCS7 package and returns a newly-created x509.CertPool with those Certificates added.
NamedServerFromContext returns name name of the server that was previously added into the context, if any.
# Variables
ErrMissingCACert represents an error caused by server config that requires certificate verification, but is missing a CA certificate.
# Structs
CreateNamedServerInput contains the input for the CreateServer function.
NamedServer wraps *http.Server to override the definition of ListenAndServeTLS, but bypasses some restrictions.