tls

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

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

Dial returns a net.Conn to be added to a Engine.

func WrapClose

func WrapClose(h func(c *pollio.Conn, tlsConn *Conn, err error)) func(c *pollio.Conn, err error)

func WrapData

func WrapData(h func(c *pollio.Conn, tlsConn *Conn, data []byte), args ...interface{}) func(c *pollio.Conn, data []byte)

func WrapOpen

func WrapOpen(tlsConfig *Config, isClient bool, h func(c *pollio.Conn, tlsConn *Conn)) func(c *pollio.Conn)

Types

type Config

type Config = tls.Config

Config .

type Conn

type Conn = tls.Conn

Conn .

Jump to

Keyboard shortcuts

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