direct

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TransportName = "direct"

Variables

View Source
var Transport = Direct{}

Functions

This section is empty.

Types

type Direct

type Direct struct{}

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(_ context.Context, req *transport.Request, localAddr chan<- string, dst io.Writer, src io.Reader) 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