Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowTcpDial ¶
AllowTcpDial allows the tor transport to dial tcp address. By Default TcpDial is off.
func DoSlowStart ¶
DoSlowStart set the tor node to bootstrap only when a Dial or a Listen is issued. By Default DoSlowStart is off.
func EnableEmbeded ¶ added in v0.6.0
EnableEmbeded setups the node to use a builtin tor node. Note: you will need to build with `-tags=embedTor` for this to works. Not available on all systems.
Types ¶
type Configurator ¶
func Merge ¶
func Merge(cs ...Configurator) Configurator
ConfMerge Merges different configs, starting at the first ending at the last.
func SetBinaryPath ¶ added in v0.6.0
func SetBinaryPath(path string) Configurator
SetBinaryPath set the path to the Tor's binary if you don't use the embeded Tor node.
func SetNodeDebug ¶
func SetNodeDebug(debug io.Writer) Configurator
SetNodeDebug set the writer for the tor node debug output.
func SetSetupTimeout ¶
func SetSetupTimeout(t time.Duration) Configurator
SetSetupTimeout change the timeout for the bootstrap of the node and the publication of the tunnel. By Default SetupTimeout is at 5 minutes.
func SetTemporaryDirectory ¶ added in v0.7.0
func SetTemporaryDirectory(path string) Configurator
SetTemporaryDirectory sets the temporary directory where Tor is gonna put his data dir. If you want an easy way to find it you can use: https://github.com/Jorropo/go-temp-dir
func SetTorrcPath ¶ added in v0.8.1
func SetTorrcPath(path string) Configurator
SetTorrc sets the torrc file for tor to use instead of an blank one.