tor

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tor

type Tor struct {
	Hostname         string
	HiddenServiceDir string
	RootPath         string
	Config           string
	Addr             string
	SocksPort        int
	VirtPort         int
	TargetPort       int
	IsLinux          bool
}

Tor has a tor configuration.

func NewTor

func NewTor() *Tor

NewTor creates a default Tor configuration.

func (*Tor) Install

func (t *Tor) Install(role string) error

Install installs tor process.

func (*Tor) Remove

func (t *Tor) Remove() error

Remove removes tor process.

func (Tor) ServiceName

func (t Tor) ServiceName() string

ServiceName returns tor daemon name.

func (*Tor) Start

func (t *Tor) Start() error

Start starts tor process.

func (*Tor) Stop

func (t *Tor) Stop() error

Stop stops tor process.

Jump to

Keyboard shortcuts

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