redirector

package
v0.0.0-...-b199937 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dial

type Dial func(net.Addr) (net.Conn, error)

type Redirection

type Redirection struct {
	Dial
	RedirectTo  net.Addr
	InboundConn net.Conn
}

type Redirector

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

func NewRedirector

func NewRedirector(ctx context.Context) *Redirector

func (*Redirector) Redirect

func (r *Redirector) Redirect(redirection *Redirection)

Jump to

Keyboard shortcuts

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