config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0, MIT Imports: 4 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.

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 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.

Jump to

Keyboard shortcuts

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