redirector

package
v1.0.6-rc13 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: GPL-3.0 Imports: 6 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