starttls

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

type Dialer added in v1.9.2

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

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

Directories

Path Synopsis
Package ldap provides basic LDAP v3 functionality.
Package ldap provides basic LDAP v3 functionality.
Package mysql provides a MySQL driver for Go's database/sql package The driver should be used via the database/sql package: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") See https://github.com/go-sql-driver/mysql#usage for details
Package mysql provides a MySQL driver for Go's database/sql package The driver should be used via the database/sql package: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") See https://github.com/go-sql-driver/mysql#usage for details
Package pq is a pure Go Postgres driver for the database/sql package.
Package pq is a pure Go Postgres driver for the database/sql package.
oid
Package oid contains OID constants as defined by the Postgres server.
Package oid contains OID constants as defined by the Postgres server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL