tls

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeHttp = iota
	TypeHttp2
	TypeUnknown
)

Variables

This section is empty.

Functions

func Close

func Close()

func StartClient

func StartClient(iFace *water.Interface, config config.Config)

StartClient starts the tls client

func StartClientForApi

func StartClientForApi(config config.Config, outputStream <-chan []byte, inputStream chan<- []byte, writeCallback, readCallback func(int), _ctx context.Context)

func StartServer

func StartServer(iFace *water.Interface, config config.Config)

StartServer starts the tls server

Types

type SniffConn

type SniffConn struct {
	net.Conn

	Type int
	// contains filtered or unexported fields
}

func NewPeekPreDataConn

func NewPeekPreDataConn(c net.Conn) *SniffConn

func (*SniffConn) GetPath

func (c *SniffConn) GetPath() string

func (*SniffConn) Handle

func (c *SniffConn) Handle() bool

func (*SniffConn) Read

func (c *SniffConn) Read(p []byte) (int, error)

func (*SniffConn) SetPath

func (c *SniffConn) SetPath(path string)

Jump to

Keyboard shortcuts

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