direct

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TransportName = "direct"

Variables

This section is empty.

Functions

func New added in v1.9.4

func New() transport.Transport

Types

type Direct

type Direct struct {
	// contains filtered or unexported fields
}

Direct is transport that connects directly to the destination

func (*Direct) Close

func (d *Direct) Close() error

func (*Direct) Dial

func (d *Direct) Dial(network, addr string) (net.Conn, error)

func (*Direct) Proxy

func (d *Direct) Proxy(ctx context.Context, req *transport.Request, localAddr chan<- string, dst io.Writer, src io.Reader) (err error)

Proxy the traffic locally

func (*Direct) String

func (d *Direct) String() string

Jump to

Keyboard shortcuts

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