Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestCertificate ¶
func NewTestCertificate() (tls.Certificate, *x509.Certificate, error)
NewTestCertificate will return a self-signed certificate for IP address 127.0.0.1 that may be used for testing purposes.
Types ¶
type TlsDialer ¶
type TlsDialer struct {
// contains filtered or unexported fields
}
func NewDialer ¶
NewDialer creates a Dialer that will use the provided dialer to create TLS connections. If the provided dialer is nil the default dialer is used. The TLS configuration to use is given by config, which is cloned. If config is nil the default configuration is used. A new (TLS) dialer is returned.
Click to show internal directories.
Click to hide internal directories.