Documentation ¶
Overview ¶
Package tor supplies helper functions to start a tor binary as a slave process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct { Config *Config // contains filtered or unexported fields }
Cmd represents an tor executable to be run as a slave process.
func (*Cmd) KillUnlessExited ¶
func (c *Cmd) KillUnlessExited()
type Config ¶
type Config struct { // Path is the path to a tor executable to be run. If path is the empty string, // $PATH is used to search for a tor executable. Path string // Timeout is the maximum amount of time we will wait for // a connect to the Tor network to complete. Timeout time.Duration // Options is a map of configuration options to values to be used // as command line arguments or in a torrc configuration file. Options map[string]string // contains filtered or unexported fields }
A Config struct is used to configure a to be executed Tor process.
func (*Config) Err ¶
Err reports the first error that was encountered during the preceding calls to Set() and clears the saved error value to nil.
func (Config) ToCmdLineFormat ¶
Click to show internal directories.
Click to hide internal directories.