proxy

package
v0.0.0-...-ace7313 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProxyFactory

func RegisterProxyFactory(proxyType string, factory proxyFactory)

RegisterProxyFactory is called by proxy implementations to make their implementation available

func ResolveDNS

func ResolveDNS(ctx context.Context, name string) (net.IP, error)

Types

type Proxy

type Proxy interface {
	GetPort() int
	SetDialer(dialer dialer.Dialer)
}

Proxy is the generic interface for proxies

func NewDNSProxy

func NewDNSProxy(dialer dialer.Dialer, port int, parameters string) (Proxy, error)

func NewProxy

func NewProxy(proxyType, proxyParameters string) (Proxy, error)

NewProxy creates a new proxy

Jump to

Keyboard shortcuts

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