tls

package
v0.0.0-...-db2842b Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT 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 Gopher.

func WrapClose

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

WrapClose returns an closing handler of nbio.Gopher.

func WrapData

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

WrapData returns a data handler of nbio.Gopher.

func WrapOpen

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

WrapOpen returns an opening handler of nbio.Gopher.

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