tls

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigTo

func ConfigTo(c *Config) *tls.Config

func Listen

func Listen(network, laddr string, config *Config) (net.Listener, error)

func NewListener

func NewListener(inner net.Listener, config *Config) net.Listener

Types

type Config

type Config struct {
	tls.Config
}

func ConfigFrom

func ConfigFrom(c *tls.Config) *Config

type Conn

type Conn struct {
	tls.Conn
}

func ConnFrom

func ConnFrom(conn *tls.Conn) *Conn

func Dial

func Dial(network, addr string, config *Config) (*Conn, error)

func DialWithDialer

func DialWithDialer(dialer *rio.Dialer, network, addr string, config *Config) (*Conn, error)

type Dialer

type Dialer struct {
	NetDialer *rio.Dialer
	Config    *Config
}

func (*Dialer) Dial

func (d *Dialer) Dial(network, addr string) (net.Conn, error)

func (*Dialer) DialContext

func (d *Dialer) DialContext(ctx context.Context, network, addr string) (net.Conn, error)

Jump to

Keyboard shortcuts

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