Back to

Package starttls

Latest Go to latest

The latest major version is .

Published: Feb 28, 2020 | License: Apache-2.0 | Module:



var Protocols = []string{"mysql", "postgres", "psql", "smtp", "ldap", "ftp", "imap"}

Protocols are the names of supported protocols

func GetConnectionState

func GetConnectionState(startTLSType, connectName, connectTo, identity, clientCert, clientKey string, connectProxy *url.URL, timeout time.Duration) (*tls.ConnectionState, *tls.CertificateRequestInfo, error)

GetConnectionState connects to a TLS server, returning the connection state. Currently, startTLSType can be one of "mysql", "postgres" or "psql", or the empty string, which does a normal TLS connection. connectTo specifies the address to connect to. connectName sets SNI. identity sets DB username, SMTP EHLO. connectCert and connectKey are client cert/key.

type Dialer

type Dialer interface {
	Dial(network, address string) (net.Conn, error)

Dialer is an interface for dialers (either net.Dialer, or http_dialer.HttpTunnel)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier