Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct {
SocksPort, ControlPort int
DataDir, Binary, TorRC string
ControlPass bool
StdOut, StdErr io.Writer
}
Conf is used to pass config values to create a Tor Instance.
func DefaultConf ¶
func DefaultConf() Conf
type Instance ¶
type Instance struct { Proxy proxy.Dialer Config Conf Stop context.CancelFunc // contains filtered or unexported fields }
Instance represents an instance of a Tor process. It can be stopped using the Stop() CancelFunc.
func NewInstance ¶
NewInstance creates a Instance of a running to process.
func (*Instance) BinaryPath ¶
func (*Instance) DeregisterService ¶
DeregisterService removes a HiddenService.
func (*Instance) RegisterService ¶
func (i *Instance) RegisterService(priv ed25519.PrivateKey, torPort, localPort int) error
RegisterService registers a new V3 Hidden Service, and proxies the requests to the specified local port.
Click to show internal directories.
Click to hide internal directories.