Versions in this module Expand all Collapse all v3 v3.4.15 Feb 24, 2021 Changes in this version + var ErrNotTCP = errors.New("only tcp connections have keepalive") + func IsClosedConnError(err error) bool + func LimitListener(l net.Listener, n int) net.Listener + func NewKeepAliveListener(l net.Listener, scheme string, tlscfg *tls.Config) (net.Listener, error) + func NewListener(addr, scheme string, tlsinfo *TLSInfo) (l net.Listener, err error) + func NewTLSListener(l net.Listener, tlsinfo *TLSInfo) (net.Listener, error) + func NewTimeoutListener(addr string, scheme string, tlsinfo *TLSInfo, ...) (net.Listener, error) + func NewTimeoutTransport(info TLSInfo, dialtimeoutd, rdtimeoutd, wtimeoutd time.Duration) (*http.Transport, error) + func NewTransport(info TLSInfo, dialtimeoutd time.Duration) (*http.Transport, error) + func NewUnixListener(addr string) (net.Listener, error) + func ValidateSecureEndpoints(tlsInfo TLSInfo, eps []string) ([]string, error) + type TLSInfo struct + AllowedCN string + AllowedHostname string + CRLFile string + CertFile string + CipherSuites []uint16 + ClientCertAuth bool + EmptyCN bool + HandshakeFailure func(*tls.Conn, error) + InsecureSkipVerify bool + KeyFile string + Logger *zap.Logger + ServerName string + SkipClientSANVerify bool + TrustedCAFile string + func SelfCert(lg *zap.Logger, dirpath string, hosts []string, selfSignedCertValidity uint, ...) (info TLSInfo, err error) + func (info TLSInfo) ClientConfig() (*tls.Config, error) + func (info TLSInfo) Empty() bool + func (info TLSInfo) ServerConfig() (*tls.Config, error) + func (info TLSInfo) String() string Other modules containing this package github.com/btwiuse/etcd