tor

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SwitcherIdentity

func SwitcherIdentity(logger *zerolog.Logger, requester Requester, switchInterval time.Duration, done <-chan bool)

func WaitForTorBootstrap

func WaitForTorBootstrap(logger *zerolog.Logger, requester Requester, timeout time.Duration) error

Types

type Controller

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

func NewTorController

func NewTorController(dialer Dialer) *Controller

func (*Controller) RequestNewTorIdentity

func (t *Controller) RequestNewTorIdentity(logger *zerolog.Logger) error

type DefaultDialer

type DefaultDialer struct{}

func (DefaultDialer) Dial

func (d DefaultDialer) Dial(network, address string) (net.Conn, error)

func (DefaultDialer) DialControlPort added in v0.14.1

func (d DefaultDialer) DialControlPort(network, address string) (net.Conn, error)

type Dialer

type Dialer interface {
	Dial(network, address string) (net.Conn, error)
	DialControlPort(network, address string) (net.Conn, error)
}

type Requester

type Requester interface {
	RequestNewTorIdentity(logger *zerolog.Logger) error
}

Jump to

Keyboard shortcuts

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