core

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseProxies

func CloseProxies(proxies []TorProxy)

func GetFreePort

func GetFreePort() (port int, err error)

Types

type ReverseProxy

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

func (*ReverseProxy) Start

func (m *ReverseProxy) Start(proxies []TorProxy, port int) error

type TorProxy

type TorProxy struct {
	Ctx             *tor.Tor
	ControlPort     *int
	ProxyPort       *int
	CircuitInterval *int
}

func CreateTorProxy

func CreateTorProxy(circuitInterval int) (*TorProxy, error)

func (*TorProxy) Close

func (m *TorProxy) Close()

Jump to

Keyboard shortcuts

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