Documentation
¶
Index ¶
- Constants
- func NewDialer(dialer N.Dialer, config Config) N.Dialer
- func NewDialerFromOptions(ctx context.Context, router adapter.Router, dialer N.Dialer, ...) (N.Dialer, error)
- func ParseTLSVersion(version string) (uint16, error)
- type Config
- type ConfigCompat
- type Conn
- type ConnectionState
- type Dialer
- type STDClientConfig
- func (s *STDClientConfig) Client(conn net.Conn) (Conn, error)
- func (s *STDClientConfig) Clone() Config
- func (s *STDClientConfig) Config() (*STDConfig, error)
- func (s *STDClientConfig) NextProtos() []string
- func (s *STDClientConfig) ServerName() string
- func (s *STDClientConfig) SetNextProtos(nextProto []string)
- func (s *STDClientConfig) SetServerName(serverName string)
- type STDConfig
- type STDConn
- type ServerConfig
- type ServerConfigCompat
- type WithSessionIDGenerator
Constants ¶
View Source
const ( VersionTLS10 = 0x0301 VersionTLS11 = 0x0302 VersionTLS12 = 0x0303 VersionTLS13 = 0x0304 // Deprecated: SSLv3 is cryptographically broken, and is no longer // supported by this package. See golang.org/issue/32716. VersionSSL30 = 0x0300 )
Variables ¶
This section is empty.
Functions ¶
func NewDialerFromOptions ¶
func ParseTLSVersion ¶
Types ¶
type ConfigCompat ¶
type ConfigCompat = aTLS.ConfigCompat
type ConnectionState ¶
type ConnectionState = tls.ConnectionState
type Dialer ¶
type Dialer struct {
// contains filtered or unexported fields
}
func (*Dialer) DialContext ¶
func (*Dialer) ListenPacket ¶
type STDClientConfig ¶
type STDClientConfig struct {
// contains filtered or unexported fields
}
func (*STDClientConfig) Clone ¶
func (s *STDClientConfig) Clone() Config
func (*STDClientConfig) Config ¶
func (s *STDClientConfig) Config() (*STDConfig, error)
func (*STDClientConfig) NextProtos ¶
func (s *STDClientConfig) NextProtos() []string
func (*STDClientConfig) ServerName ¶
func (s *STDClientConfig) ServerName() string
func (*STDClientConfig) SetNextProtos ¶
func (s *STDClientConfig) SetNextProtos(nextProto []string)
func (*STDClientConfig) SetServerName ¶
func (s *STDClientConfig) SetServerName(serverName string)
type ServerConfig ¶
type ServerConfig = aTLS.ServerConfig
type ServerConfigCompat ¶
type ServerConfigCompat = aTLS.ServerConfigCompat
type WithSessionIDGenerator ¶
type WithSessionIDGenerator = aTLS.WithSessionIDGenerator
Click to show internal directories.
Click to hide internal directories.