proxy

package
v1.22.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDuplex

func CopyDuplex(a, b net.Conn, terminationDelay time.Duration) error

Types

type Proxy

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

Proxy forwards a TCP request to a TCP service.

func NewTCPProxy

func NewTCPProxy(target string, terminationDelay time.Duration) (*Proxy, error)

NewTCPProxy creates a new Proxy.

func (*Proxy) ServeConn

func (p *Proxy) ServeConn(conn net.Conn) error

ServeTCP forwards the connection to a service.

Jump to

Keyboard shortcuts

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