stack

package
v0.0.0-...-ace1e11 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(option Option)

Types

type ForwarderTCPRequest

type ForwarderTCPRequest struct {
	Conn       net.Conn
	RemoteAddr string
	LocalAddr  string
}

type ForwarderUDPRequest

type ForwarderUDPRequest struct {
	Conn       net.Conn
	RemoteAddr string
	LocalAddr  string
}

type Option

type Option struct {
	HandleTCP  func(*ForwarderTCPRequest)
	HandlerUDP func(*ForwarderUDPRequest)
	EndPoint   stack.LinkEndpoint
}

Jump to

Keyboard shortcuts

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