proxy

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package proxy implements various proxy related utilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forward

func Forward(ctx context.Context, conn net.Conn, addr netip.AddrPort) error

Forward will take a context, a "downstream" net.Conn and a netip.Addr it will create a new connection "upstream" and it will move bytes between the two. Practically it will proxy between the two connections

Types

type CloseWriter added in v0.6.0

type CloseWriter interface {
	CloseWrite() error
}

CloseWriter represents a connection that can close its Write stream

Jump to

Keyboard shortcuts

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