config

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0, MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowTcpDial

func AllowTcpDial(c *confStore.Config) error

AllowTcpDial allows the tor transport to dial tcp address. By Default TcpDial is off.

func DoSlowStart

func DoSlowStart(c *confStore.Config) error

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

func EnableEmbeded(c *confStore.Config) error

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

type Configurator func(*confStore.Config) error

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.

Jump to

Keyboard shortcuts

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