tunnel

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMetadata

func CreateMetadata(srcAddr, destAddr string, network constant.NetWork) (*constant.Metadata, error)

func CreateTcpMetadata

func CreateTcpMetadata(srcAddr, destAddr net.TCPAddr) constant.Metadata

func CreateUdpMetadata

func CreateUdpMetadata(srcAddr, destAddr net.UDPAddr) constant.Metadata

func TcpQueue added in v0.2.0

func TcpQueue() chan conn.TcpConnContext

func UdpQueue added in v0.2.0

func UdpQueue() chan conn.UdpConnContext

Types

type CloseableConn

type CloseableConn interface {
	Close() error
}

type Matcher

type Matcher interface {
	GetRule(ip string) constants.IpRule
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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