anyproxy

package
v0.0.0-...-8616551 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: BSD-2-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const BUILDHOST = "C02FFGF5MD6M"
View Source
const BUILDTIMESTAMP = 1629453200
View Source
const BUILDUSER = "rkenny"
View Source
const SO_ORIGINAL_DST = 80
View Source
const VERSION = "1.2"

Variables

This section is empty.

Functions

func IncrDirectServerReadErr

func IncrDirectServerReadErr()

func IncrDirectServerWriteErr

func IncrDirectServerWriteErr()

func IncrProxyServerReadErr

func IncrProxyServerReadErr()

func IncrProxyServerWriteErr

func IncrProxyServerWriteErr()

func InitConfig

func InitConfig()

func NewReverseLookupCache

func NewReverseLookupCache() *reverseLookupCache

func ReportStatistics

func ReportStatistics(err error, srcName string, dstName string)

func StartProxy

func StartProxy(newconnection ProxyConnectionManager)

Types

type DirectProxyConnection

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

func (*DirectProxyConnection) CopyProxyConnection

func (into *DirectProxyConnection) CopyProxyConnection(dst io.ReadWriteCloser, src io.ReadWriteCloser, dstName string, srcName string)

func (*DirectProxyConnection) SpawnBiDirectionalCopy

func (into *DirectProxyConnection) SpawnBiDirectionalCopy(dst io.ReadWriteCloser, src io.ReadWriteCloser, dstName string, srcName string)

type LoggingProxyConnection

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

func (*LoggingProxyConnection) CopyProxyConnection

func (into *LoggingProxyConnection) CopyProxyConnection(dst io.ReadWriteCloser, src io.ReadWriteCloser, dstName string, srcName string)

func (*LoggingProxyConnection) SpawnBiDirectionalCopy

func (into *LoggingProxyConnection) SpawnBiDirectionalCopy(dst io.ReadWriteCloser, src io.ReadWriteCloser, dstName string, srcName string)

type ProxyConnectionManager

type ProxyConnectionManager interface {
	CopyProxyConnection(io.ReadWriteCloser, io.ReadWriteCloser, string, string)
	SpawnBiDirectionalCopy(io.ReadWriteCloser, io.ReadWriteCloser, string, string)
}

Jump to

Keyboard shortcuts

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