Documentation
¶
Overview ¶
Package torx contains code to control tor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogFile ¶ added in v0.12.0
func LogFile(sess model.ExperimentSession) string
LogFile returns the name of tor logs given a specific session. The file is always located somewhere inside the sess.TempDir() directory.
Types ¶
type StartConfig ¶
type StartConfig struct {
Sess model.ExperimentSession
Start func(ctx context.Context, conf *tor.StartConf) (*tor.Tor, error)
EnableNetwork func(ctx context.Context, tor *tor.Tor, wait bool) error
GetInfo func(ctrl *control.Conn, keys ...string) ([]*control.KeyVal, error)
}
StartConfig contains the configuration for StartWithConfig
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
Tunnel is the Tor tunnel
func StartWithConfig ¶
func StartWithConfig(ctx context.Context, config StartConfig) (*Tunnel, error)
StartWithConfig is a configurable Start for testing
func (*Tunnel) BootstrapTime ¶
BootstrapTime is the bootstrsap time
func (*Tunnel) SOCKS5ProxyURL ¶
SOCKS5ProxyURL returns the URL of the SOCKS5 proxy
Click to show internal directories.
Click to hide internal directories.