router

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(route *conf.Route, autoUpdateRuleFiles bool, outbounds map[string]*conf.ProxyNode, tlsKeyLog bool) *Handler

func (*Handler) CreateConnection

func (h *Handler) CreateConnection(accessAddr *transport.SocketAddress) (net.Conn, error)

func (*Handler) ForwardConnection

func (h *Handler) ForwardConnection(srcRWC io.ReadWriteCloser, accessAddr *transport.SocketAddress) error

func (*Handler) ForwardHandler

func (h *Handler) ForwardHandler(accessAddr *transport.SocketAddress) (transport.ConnectionContinuationHandler, error)

Jump to

Keyboard shortcuts

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